apiVersion: v1
kind: Pod
metadata:
  name: my-nginx
  labels:
    app: test
spec:
  containers:
    - name: my-nginx
      image: nginx:alpine
      livenessProbe:
            httpGet: 
                path: /index.html
                port: 80
            initialDelaySeconds: 15 
            timeoutSeconds: 2 
            periodSeconds: 5 
            failureThreshold: 1 
      readinessProbe:
            httpGet: 
                path: /index.html
                port: 80
            initialDelaySeconds: 3
            periodSeconds: 5 
            failureThreshold: 1
      ports:
        - containerPort: 80