// Aula 12 - Verificando a sanidade # vim healthy-pod-kuard.yaml # esse arquivo verifica a sanidade de requisições de HTTP do nosso POD kuard # healthy-pod-kuard.yaml apiVersion: v1 kind: Pod metadata: name: kuard spec: containers: - image: gcr.io/kuar-demo/kuard-amd64:1 name: kuard livenessProbe: httpGet: path: /healthy port: 8080 initialDelaySeconds: 5 timeoutSeconds: 1 periodSeconds: 10 failureThreshold: 3 ports: - containerPort: 8080 name: http protocol: TCP https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#httpgetaction-v1-core # kubectl get pods # kubectl delete pods/kuard # kubectl apply -f healthy-pod-kuard.yaml # kubectl port-forward kuard 8080:8080 # kubectl describe pods kuard