apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 1 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.18.0 ports: - containerPort: 80 resources: limits: memory: "200Mi" cpu: "0.5" requests: memory: "100Mi" cpu: "0.2" livenessProbe: httpGet: path: / port: 80 httpHeaders: initialDelaySeconds: 10 periodSeconds: 3 timeoutSeconds: 1 successThreshold: 1 failureThreshold: 3 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 10 periodSeconds: 3 timeoutSeconds: 1 successThreshold: 1 failureThreshold: 3