You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: default-http-backend
  5. labels:
  6. app: default-http-backend
  7. namespace: ingress-nginx
  8. spec:
  9. replicas: 1
  10. template:
  11. metadata:
  12. labels:
  13. app: default-http-backend
  14. spec:
  15. terminationGracePeriodSeconds: 60
  16. containers:
  17. - name: default-http-backend
  18. # Any image is permissable as long as:
  19. # 1. It serves a 404 page at /
  20. # 2. It serves 200 on a /healthz endpoint
  21. image: gcr.io/google_containers/defaultbackend:1.4
  22. livenessProbe:
  23. httpGet:
  24. path: /healthz
  25. port: 8080
  26. scheme: HTTP
  27. initialDelaySeconds: 30
  28. timeoutSeconds: 5
  29. ports:
  30. - containerPort: 8080
  31. resources:
  32. limits:
  33. cpu: 10m
  34. memory: 20Mi
  35. requests:
  36. cpu: 10m
  37. memory: 20Mi
  38. ---
  39. apiVersion: v1
  40. kind: Service
  41. metadata:
  42. name: default-http-backend
  43. namespace: ingress-nginx
  44. labels:
  45. app: default-http-backend
  46. spec:
  47. ports:
  48. - port: 80
  49. targetPort: 8080
  50. selector:
  51. app: default-http-backend