apiVersion: apps/v1 kind: Deployment metadata: name: harbor-nginx namespace: "harbor" labels: heritage: Helm release: harbor chart: harbor app: "harbor" app.kubernetes.io/instance: harbor app.kubernetes.io/name: harbor app.kubernetes.io/managed-by: Helm app.kubernetes.io/part-of: harbor app.kubernetes.io/version: "2.14.1" component: nginx app.kubernetes.io/component: nginx spec: replicas: 0 revisionHistoryLimit: 10 selector: matchLabels: release: harbor app: "harbor" component: nginx template: metadata: labels: heritage: Helm release: harbor chart: harbor app: "harbor" app.kubernetes.io/instance: harbor app.kubernetes.io/name: harbor app.kubernetes.io/managed-by: Helm app.kubernetes.io/part-of: harbor app.kubernetes.io/version: "2.14.1" component: nginx app.kubernetes.io/component: nginx annotations: checksum/configmap: bd115f845eb3c5da99a75fa596b0abd85f4e9d1b05b144b15ebf050a3eaa45f9 checksum/secret: 22884ee11930d77370ac13bb10aff3e2afff2c85131eb3b62726d35ee4755c48 spec: securityContext: runAsUser: 10000 fsGroup: 10000 automountServiceAccountToken: false containers: - name: nginx image: "goharbor/nginx-photon:v2.14.1" imagePullPolicy: "IfNotPresent" livenessProbe: httpGet: scheme: HTTPS path: / port: 8443 initialDelaySeconds: 300 periodSeconds: 10 readinessProbe: httpGet: scheme: HTTPS path: / port: 8443 initialDelaySeconds: 1 periodSeconds: 10 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL privileged: false runAsNonRoot: true seccompProfile: type: RuntimeDefault ports: - containerPort: 8080 - containerPort: 8443 volumeMounts: - name: config mountPath: /etc/nginx/nginx.conf subPath: nginx.conf - name: certificate mountPath: /etc/nginx/cert volumes: - name: config configMap: name: harbor-nginx - name: certificate secret: secretName: harbor-nginx