kube.yaml 699 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: clsi
  5. namespace: default
  6. spec:
  7. type: LoadBalancer
  8. ports:
  9. - port: 80
  10. protocol: TCP
  11. targetPort: 80
  12. selector:
  13. run: clsi
  14. ---
  15. apiVersion: extensions/v1beta1
  16. kind: Deployment
  17. metadata:
  18. name: clsi
  19. namespace: default
  20. spec:
  21. replicas: 2
  22. template:
  23. metadata:
  24. labels:
  25. run: clsi
  26. spec:
  27. containers:
  28. - name: clsi
  29. image: gcr.io/henry-terraform-admin/clsi
  30. imagePullPolicy: Always
  31. readinessProbe:
  32. httpGet:
  33. path: status
  34. port: 80
  35. periodSeconds: 5
  36. initialDelaySeconds: 0
  37. failureThreshold: 3
  38. successThreshold: 1