Files
infrastructure/clusters/cl01tl/manifests/cloudnative-pg/Deployment-cloudnative-pg.yaml

108 lines
3.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cloudnative-pg
namespace: cloudnative-pg
labels:
helm.sh/chart: cloudnative-pg-0.28.0
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
app.kubernetes.io/version: "1.29.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
template:
metadata:
annotations:
checksum/rbac: de6f8c0801db717a56d299947c958973df088ff20a44e5058af807c196824bd6
checksum/config: 1b0703c95b4ee680d176bff9c527b0aa792c9296c2c7ce6d0d9feb8a4a719a9c
checksum/monitoring-config: e386a85eeb1c33f87053f6424690f9a77e6ef7247a617162dbaee9b370fb70d1
labels:
app.kubernetes.io/name: cloudnative-pg
app.kubernetes.io/instance: cloudnative-pg
spec:
containers:
- args:
- controller
- --leader-elect
- --max-concurrent-reconciles=10
- --config-map-name=cnpg-controller-manager-config
- --webhook-port=9443
command:
- /manager
env:
- name: OPERATOR_IMAGE_NAME
value: "ghcr.io/cloudnative-pg/cloudnative-pg:1.29.0"
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MONITORING_QUERIES_CONFIGMAP
value: "cnpg-default-monitoring"
image: "ghcr.io/cloudnative-pg/cloudnative-pg:1.29.0"
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /readyz
port: webhook-server
scheme: HTTPS
initialDelaySeconds: 3
name: manager
ports:
- containerPort: 8080
name: metrics
protocol: TCP
- containerPort: 9443
name: webhook-server
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: webhook-server
scheme: HTTPS
initialDelaySeconds: 3
resources:
requests:
cpu: 10m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 10001
runAsUser: 10001
seccompProfile:
type: RuntimeDefault
startupProbe:
failureThreshold: 6
httpGet:
path: /readyz
port: webhook-server
scheme: HTTPS
periodSeconds: 5
volumeMounts:
- mountPath: /controller
name: scratch-data
- mountPath: /run/secrets/cnpg.io/webhook
name: webhook-certificates
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: cloudnative-pg
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: scratch-data
- name: webhook-certificates
secret:
defaultMode: 420
optional: true
secretName: cnpg-webhook-cert