default-svc-controller.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: l7-default-backend
  5. namespace: kube-system
  6. labels:
  7. k8s-app: glbc
  8. kubernetes.io/name: "GLBC"
  9. kubernetes.io/cluster-service: "true"
  10. addonmanager.kubernetes.io/mode: Reconcile
  11. spec:
  12. selector:
  13. matchLabels:
  14. k8s-app: glbc
  15. template:
  16. metadata:
  17. labels:
  18. k8s-app: glbc
  19. name: glbc
  20. annotations:
  21. seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
  22. spec:
  23. containers:
  24. - name: default-http-backend
  25. # Any image is permissible as long as:
  26. # 1. It serves a 404 page at /
  27. # 2. It serves 200 on a /healthz endpoint
  28. image: k8s.gcr.io/ingress-gce-404-server-with-metrics-amd64:v1.6.0
  29. livenessProbe:
  30. httpGet:
  31. path: /healthz
  32. port: 8080
  33. scheme: HTTP
  34. initialDelaySeconds: 30
  35. timeoutSeconds: 5
  36. ports:
  37. - containerPort: 8080
  38. resources:
  39. limits:
  40. cpu: 10m
  41. memory: 20Mi
  42. requests:
  43. cpu: 10m
  44. memory: 20Mi