activity-core/k8s/railiance/25-worker-backup-mounts.yaml
tegwick 041ff9b495
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 36s
feat: daily CNPG Option A backup shell activity (RAILIANCE-WP-0016)
Add cnpg_option_a_backup resolver, disabled ActivityDefinition, ESO
manifest, worker kubeconfig hostPath, databases RBAC, and unit tests.
Enable after ESO token re-mint and host kubeconfig wiring.
2026-07-22 19:50:59 +02:00

41 lines
1.3 KiB
YAML

# Strategic merge patch fragments for actcore-worker backup automation.
# Apply with: kubectl -n activity-core patch deploy actcore-worker --patch-file ...
#
# Adds:
# - hostPath kubeconfigs (/home/tegwick/.kube → /kube)
# - ensure railiance-platform hostPath (already live on railiance01)
#
# RAILIANCE-WP-0016-T04/T05
apiVersion: apps/v1
kind: Deployment
metadata:
name: actcore-worker
namespace: activity-core
spec:
template:
spec:
containers:
- name: worker
env:
- name: KUBECONFIG_R01
value: /kube/config-hosteurope
- name: KUBECONFIG_CORE
value: /kube/config
- name: PATH
value: /opt/railiance-platform/tools/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
volumeMounts:
- name: kubeconfigs
mountPath: /kube
readOnly: true
- name: railiance-platform
mountPath: /opt/railiance-platform
readOnly: true
volumes:
- name: kubeconfigs
hostPath:
path: /home/tegwick/.kube
type: Directory
- name: railiance-platform
hostPath:
path: /home/tegwick/railiance-platform
type: Directory