Initial render: k3s-dev environment
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: cnpg
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: cloudnative-pg
|
||||
app.kubernetes.io/version: 1.27.0
|
||||
helm.sh/chart: cloudnative-pg-0.26.0
|
||||
name: cnpg-cloudnative-pg
|
||||
namespace: abinitio-db
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: cnpg
|
||||
app.kubernetes.io/name: cloudnative-pg
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: f65b61ce35cfc0ee84e700d3893b8cf9679888cdfedc96b48a007333f130e676
|
||||
checksum/monitoring-config: c102ba90005dc20a1cde20042947e25105d94794c3d11cc58932975581100637
|
||||
checksum/rbac: 5be134c946075feccaa00f242771be73165cd30479bef1314588979340d0e0dd
|
||||
labels:
|
||||
app.kubernetes.io/instance: cnpg
|
||||
app.kubernetes.io/name: 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.27.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.27.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 9443
|
||||
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: 9443
|
||||
scheme: HTTPS
|
||||
initialDelaySeconds: 3
|
||||
resources: {}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsGroup: 10001
|
||||
runAsUser: 10001
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
startupProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 9443
|
||||
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: cnpg-cloudnative-pg
|
||||
terminationGracePeriodSeconds: 10
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: scratch-data
|
||||
- name: webhook-certificates
|
||||
secret:
|
||||
defaultMode: 420
|
||||
optional: true
|
||||
secretName: cnpg-webhook-cert
|
||||
Reference in New Issue
Block a user