--- apiVersion: apps/v1 kind: Deployment metadata: name: blog namespace: blog labels: app.kubernetes.io/name: blog spec: replicas: 2 selector: matchLabels: app.kubernetes.io/name: blog template: metadata: labels: app.kubernetes.io/name: blog spec: containers: - name: blog image: blog ports: - name: http containerPort: 3000 protocol: TCP - name: metrics containerPort: 9100 protocol: TCP resources: limits: cpu: 100m memory: 60Mi requests: cpu: 50m memory: 20Mi livenessProbe: httpGet: path: / port: http scheme: HTTP timeoutSeconds: 1 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 readinessProbe: httpGet: path: / port: http scheme: HTTP timeoutSeconds: 1 periodSeconds: 10 successThreshold: 1 failureThreshold: 3 imagePullPolicy: IfNotPresent securityContext: capabilities: drop: - ALL runAsUser: 65532 runAsNonRoot: true readOnlyRootFilesystem: true allowPrivilegeEscalation: false