apiVersion: apps/v1 kind: Deployment metadata: name: application namespace: family-hub spec: replicas: 1 selector: matchLabels: app: application template: metadata: labels: app: application spec: containers: - name: application image: git.myhomecloud.tech/admin/familyhub:latest ports: - containerPort: 8000 envFrom: - configMapRef: name: family-hub-config - secretRef: name: family-hub-secrets env: - name: GOOGLE_APPLICATION_CREDENTIALS value: /secrets/credentials.json volumeMounts: - name: google-credentials mountPath: /secrets readOnly: true # livenessProbe: # httpGet: # path: /api/v1/health # port: 8000 # initialDelaySeconds: 10 # periodSeconds: 30 # readinessProbe: # httpGet: # path: /api/v1/health # port: 8000 # initialDelaySeconds: 5 # periodSeconds: 10 volumes: - name: google-credentials secret: secretName: google-credentials imagePullSecrets: - name: gitea-registry --- apiVersion: v1 kind: Service metadata: name: application namespace: family-hub spec: selector: app: application ports: - port: 9876 targetPort: 8000