apiVersion: apps/v1 kind: Deployment metadata: name: postgres-operator labels: application: postgres-operator spec: replicas: 1 strategy: type: "Recreate" selector: matchLabels: name: postgres-operator template: metadata: labels: name: postgres-operator spec: serviceAccountName: postgres-operator containers: - name: postgres-operator image: registry.opensource.zalan.do/acid/postgres-operator:v1.9.0 imagePullPolicy: IfNotPresent resources: requests: cpu: 100m memory: 250Mi limits: cpu: 500m memory: 500Mi securityContext: runAsUser: 1000 runAsNonRoot: true readOnlyRootFilesystem: true allowPrivilegeEscalation: false #volumes: #size: "2Gi" #storageClass: "managed-nfs-storage" env: # provided additional ENV vars can overwrite individual config map entries # - name: CONFIG_MAP_NAME # value: "postgres-operator" # In order to use the CRD OperatorConfiguration instead, uncomment these lines and comment out the two lines above - name: POSTGRES_OPERATOR_CONFIGURATION_OBJECT value: postgresql-operator-default-configuration # Define an ID to isolate controllers from each other - name: CONTROLLER_ID value: "second-operator" #volume: #size: 1Gi #storageClass: managed-nfs-storage # storageClass: my-sc root@ni-kafka-mqtt-01:~/postgres-ha/zalando/postgres-operator/manifests# cat postgres-operator.yaml apiVersion: apps/v1 kind: Deployment metadata: name: postgres-operator labels: application: postgres-operator spec: replicas: 1 strategy: type: "Recreate" selector: matchLabels: name: postgres-operator template: metadata: labels: name: postgres-operator spec: serviceAccountName: postgres-operator containers: - name: postgres-operator image: registry.opensource.zalan.do/acid/postgres-operator:v1.9.0 imagePullPolicy: IfNotPresent resources: requests: cpu: 100m memory: 250Mi limits: cpu: 500m memory: 500Mi securityContext: runAsUser: 1000 runAsNonRoot: true readOnlyRootFilesystem: true allowPrivilegeEscalation: false #volumes: #size: "2Gi" #storageClass: "managed-nfs-storage" env: # provided additional ENV vars can overwrite individual config map entries # - name: CONFIG_MAP_NAME # value: "postgres-operator" # In order to use the CRD OperatorConfiguration instead, uncomment these lines and comment out the two lines above - name: POSTGRES_OPERATOR_CONFIGURATION_OBJECT value: postgresql-operator-default-configuration # Define an ID to isolate controllers from each other - name: CONTROLLER_ID value: "second-operator" #volume: #size: 1Gi #storageClass: managed-nfs-storage # storageClass: my-sc