.
This commit is contained in:
@@ -10,7 +10,7 @@ metadata:
|
||||
namespace: polly
|
||||
type: Opaque
|
||||
stringData:
|
||||
# change these
|
||||
postgres-password: "change-this-db-password"
|
||||
database-url: "postgresql://polly:change-this-db-password@postgres:5432/polly"
|
||||
session-secret: "change-this-to-a-random-secret-with-at-least-32-characters"
|
||||
admin-password: "change-this-admin-password"
|
||||
@@ -26,8 +26,6 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
# Use a block storage class here if you have one.
|
||||
# If your cluster has a sane default RBD/block class, you can leave this out.
|
||||
storageClassName: cephfs-hyper
|
||||
---
|
||||
apiVersion: v1
|
||||
@@ -41,7 +39,6 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 4Gi
|
||||
# Use block storage here too for a simple single-replica setup.
|
||||
storageClassName: cephfs-hyper
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
@@ -74,15 +71,21 @@ spec:
|
||||
name: polly-secrets
|
||||
key: postgres-password
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
- name: postgres
|
||||
containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["pg_isready","-U","polly"]
|
||||
command: ["pg_isready", "-U", "polly", "-d", "polly"]
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
livenessProbe:
|
||||
exec:
|
||||
command: ["pg_isready", "-U", "polly", "-d", "polly"]
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
persistentVolumeClaim:
|
||||
|
||||
Reference in New Issue
Block a user