apiVersion: apps/v1 kind: Deployment metadata: name: phoenix-app namespace: web labels: app: phoenix-app spec: replicas: 1 selector: matchLabels: app: phoenix-app template: metadata: labels: app: phoenix-app spec: serviceAccountName: phoenix-sa hostPID: true # hostNetwork: true # dnsPolicy: ClusterFirstWithHostNet imagePullSecrets: - name: harbor-secret containers: - name: phoenix-app image: harbor.mxhunt.in/k8s-lab/phoenix:934fc65d1a00f96629d07dee790a3c112afe9b28 ports: - containerPort: 8080 # hostPort: 8080 env: - name: DEBUG_PATH valueFrom: configMapKeyRef: name: phoenix-config key: DEBUG_PATH livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 5 periodSeconds: 10 securityContext: privileged: true volumeMounts: - name: host-root mountPath: /host volumes: - name: host-root hostPath: path: /