apiVersion: apps/v1 kind: Deployment metadata: name: techlog-frontend spec: template: spec: securityContext: runAsNonRoot: true runAsUser: 101 runAsGroup: 101 seccompProfile: type: RuntimeDefault containers: - name: frontend # replace, not merge: ports merge on containerPort, which would # keep the old 80 entry next to 8080 under the same name. ports: - $patch: replace - name: http containerPort: 8080 protocol: TCP securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL livenessProbe: httpGet: path: /config.json port: 8080 readinessProbe: httpGet: path: /config.json port: 8080