rc.yaml 530 B

12345678910111213141516171819202122232425
  1. apiVersion: v1
  2. kind: ReplicationController
  3. metadata:
  4. name: echoheaders
  5. spec:
  6. replicas: 1
  7. template:
  8. metadata:
  9. labels:
  10. app: echoheaders
  11. spec:
  12. containers:
  13. - name: echoheaders
  14. image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
  15. ports:
  16. - containerPort: 8080
  17. readinessProbe:
  18. httpGet:
  19. path: /healthz
  20. port: 8080
  21. periodSeconds: 1
  22. timeoutSeconds: 1
  23. successThreshold: 1
  24. failureThreshold: 10