Skip to content

Instantly share code, notes, and snippets.

@shiponcs
Created January 10, 2024 13:03
Show Gist options
  • Save shiponcs/d2d0c80df0d9168e29a11b920b40b07b to your computer and use it in GitHub Desktop.
Save shiponcs/d2d0c80df0d9168e29a11b920b40b07b to your computer and use it in GitHub Desktop.
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
log_min_messages=DEBUG5
log_min_error_statement=DEBUG5
@shiponcs
Copy link
Author

create the secret:
kubectl create secret generic user-conf -n poc --from-file=./user.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment