apiVersion: v1
kind: Pod
metadata:
  name: nginx-app
spec:
  containers:
    - image: nginx
      name: nginx
      livenessProbe:
        httpGet:
          path: /
          port: 80
        initialDelaySeconds: 5
        timeoutSeconds: 1
        periodSeconds: 10
        failureThreshold: 3
      ports:
        - containerPort: 8080
          name: http
          protocol: TCP
