podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
application: spilo
cluster-name: nextcloud-cluster
serviceName: nextcloud-cluster
template:
metadata:
creationTimestamp: null
labels:
application: spilo
cluster-name: nextcloud-cluster
team: nextcloud
namespace: nextcloud-psql
spec:
containers:
- env:
- name: SCOPE
value: nextcloud-cluster
- name: PGROOT
value: /home/postgres/pgdata/pgroot
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: PGUSER_SUPERUSER
value: postgres
- name: KUBERNETES_SCOPE_LABEL
value: cluster-name
- name: KUBERNETES_ROLE_LABEL
value: spilo-role
- name: PGPASSWORD_SUPERUSER
valueFrom:
secretKeyRef:
key: password
name: postgres.nextcloud-cluster.credentials
- name: PGUSER_STANDBY
value: standby
- name: PGPASSWORD_STANDBY
valueFrom:
secretKeyRef:
key: password
name: standby.nextcloud-cluster.credentials
- name: PAM_OAUTH2
value: https://info.example.com/oauth2/tokeninfo?access_token= uid realm=/employees
- name: HUMAN_ROLE
value: zalandos
- name: PGVERSION
value: '13'
- name: KUBERNETES_LABELS
value: '{"application":"spilo"}'
- name: SPILO_CONFIGURATION
value: '{"postgresql":{},"bootstrap":{"initdb":[{"auth-host":"md5"},{"auth-local":"trust"}],"users":{"zalandos":{"password":"","options":["CREATEDB","NOLOGIN"]}},"dcs":{}}}'
- name: DCS_ENABLE_KUBERNETES_API
value: 'true'
- name: ENABLE_WAL_PATH_COMPAT
value: 'true'
image: registry.opensource.zalan.do/acid/spilo-13:2.0-p7
imagePullPolicy: IfNotPresent
name: postgres
ports:
- containerPort: 8008
protocol: TCP
- containerPort: 5432
protocol: TCP
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: '1'
memory: 500Mi
requests:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: true
privileged: false
readOnlyRootFilesystem: false
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /home/postgres/pgdata
name: pgdata
- mountPath: /dev/shm
name: dshm
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: postgres-pod
serviceAccountName: postgres-pod
terminationGracePeriodSeconds: 300
volumes:
- emptyDir:
medium: Memory
name: dshm
updateStrategy:
type: OnDelete
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.alpha.kubernetes.io/storage-class: default
creationTimestamp: null
name: pgdata
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
volumeMode: Filesystem
status:
phase: Pending