- Add hcloud-csi prototype (Hetzner Cloud CSI driver) - Add cloudnative-pg prototype (CNPG operator) - Add CNPG Cluster CR for Forgejo (2 instances, lean config for 4GB nodes) - Add 20Gi hcloud-volumes PVC for Forgejo git repos - Switch Forgejo from SQLite to PostgreSQL (forgejo-cnpg-rw service) - Switch Forgejo persistence to hcloud-volumes (forgejo-git-storage) - Fix ClusterRoleBinding subject namespaces for hcloud-csi and CNPG - Fix CNPG webhook service namespace references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
100 lines
3.1 KiB
YAML
100 lines
3.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
a8r.io/repository: ssh://git@git.tr1ceracop.de:222/gitea_admin/k8s-and-chill.git
|
|
labels:
|
|
app.kubernetes.io/instance: cloudnative-pg
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: cloudnative-pg
|
|
app.kubernetes.io/version: 1.25.0
|
|
helm.sh/chart: cloudnative-pg-0.23.0
|
|
name: cloudnative-pg
|
|
namespace: cnpg-system
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: cloudnative-pg
|
|
app.kubernetes.io/name: cloudnative-pg
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
checksum/config: 58eeb2f6847432d54310c44a01db93c370f722309827d3a3177b36183ae7399b
|
|
checksum/monitoring-config: 794b973f78a96e769be960221b62b1168deb2bc532c5b16b31096bbe801d2d54
|
|
checksum/rbac: f8bdccd5b7485612eb3d8e0b5b10c9916c9d017418e2862f96a78a9206b9e091
|
|
labels:
|
|
app.kubernetes.io/instance: cloudnative-pg
|
|
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.25.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.25.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
|
|
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
|