apiVersion: apps/v1 kind: Deployment metadata: name: web namespace: web spec: replicas: 2 selector: matchLabels: app: web template: metadata: labels: app: web spec: securityContext: runAsNonRoot: true runAsUser: 101 # nginx user runAsGroup: 101 fsGroup: 101 containers: - name: web image: /library/keyboard-vagabond-web:latest imagePullPolicy: Always ports: - containerPort: 80 name: http resources: requests: cpu: 75m memory: 32Mi limits: cpu: 200m memory: 64Mi livenessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 10 periodSeconds: 30 readinessProbe: httpGet: path: /health port: 80 initialDelaySeconds: 5 periodSeconds: 10