Charmed PostgreSQL K8s
- Canonical
- Databases
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 20 | 20 Sep 2022 | |
14/stable | 445 | 12 Nov 2024 | |
14/stable | 444 | 12 Nov 2024 | |
14/candidate | 463 | 19 Nov 2024 | |
14/candidate | 462 | 19 Nov 2024 | |
14/beta | 467 | 26 Nov 2024 | |
14/beta | 466 | 26 Nov 2024 | |
14/edge | 471 | 29 Nov 2024 | |
14/edge | 470 | 29 Nov 2024 |
juju deploy postgresql-k8s --channel 14/stable
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.postgresql_k8s.v0.postgresql_tls
-
- Last updated 26 Nov 2024
- Revision Library version 0.10
In this class we manage certificates relation.
This class handles certificate request and renewal through the interaction with the TLS Certificates Operator.
This library needs that https://charmhub.io/tls-certificates-interface/libraries/tls_certificates library is imported to work.
It also needs the following methods in the charm class: — get_hostname_by_unit: to retrieve the DNS hostname of the unit. — get_secret: to retrieve TLS files from secrets. — push_tls_files_to_workload: to push TLS files to the workload container and enable TLS. — set_secret: to store TLS files as secrets. — update_config: to disable TLS when relation with the TLS Certificates Operator is broken.
Index
class PostgreSQLTLS
Description
In this class we manage certificates relation. None
Methods
PostgreSQLTLS. __init__( self , charm , peer_relation: str , additional_dns_names )
Description
Manager of PostgreSQL relation with TLS Certificates Operator. None
PostgreSQLTLS. get_tls_files( self )
Prepare TLS files in special PostgreSQL way.
Description
PostgreSQL needs three files: — CA file should have a full chain. — Key file should have private key. — Certificate file should have certificate without certificate chain.