Created
January 10, 2024 13:03
-
-
Save shiponcs/d2d0c80df0d9168e29a11b920b40b07b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kubedb.com/v1alpha2 | |
kind: Postgres | |
metadata: | |
name: pg-tls-15-3-new | |
namespace: poc | |
spec: | |
version: "15.3" | |
replicas: 1 | |
configSecret: | |
name: user-conf | |
standbyMode: Hot | |
storageType: Durable | |
tls: | |
issuerRef: | |
apiGroup: cert-manager.io | |
name: postgres-ca-issuer | |
kind: Issuer | |
certificates: | |
- alias: server | |
subject: | |
organizations: | |
- kubedb:server | |
dnsNames: | |
- localhost | |
ipAddresses: | |
- "127.0.0.1" | |
storage: | |
storageClassName: "linode-block-storage" | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 1Gi | |
terminationPolicy: WipeOut | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_min_messages=DEBUG5 | |
log_min_error_statement=DEBUG5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create the secret:
kubectl create secret generic user-conf -n poc --from-file=./user.conf