pod.yaml 965 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: netexec
  5. labels:
  6. app: netexec
  7. spec:
  8. containers:
  9. - name: netexec
  10. image: gcr.io/kubernetes-e2e-test-images/netexec-amd64:1.1
  11. ports:
  12. - containerPort: 8080
  13. protocol: TCP
  14. - containerPort: 8081
  15. protocol: UDP
  16. # give this pod the same liveness and readiness probe because
  17. # we always want the kubelet to restart it if it becomes
  18. # unready, and at the same time we want to observe readiness
  19. # as a signal to start testing.
  20. livenessProbe:
  21. httpGet:
  22. path: /healthz
  23. port: 8080
  24. scheme: HTTP
  25. initialDelaySeconds: 10
  26. timeoutSeconds: 5
  27. failureThreshold: 3
  28. periodSeconds: 10
  29. successThreshold: 1
  30. readinessProbe:
  31. httpGet:
  32. path: /healthz
  33. port: 8080
  34. scheme: HTTP
  35. initialDelaySeconds: 10
  36. timeoutSeconds: 5
  37. failureThreshold: 3
  38. periodSeconds: 10
  39. successThreshold: 1