glbc.manifest 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: l7-lb-controller-v1.2.3
  5. namespace: kube-system
  6. annotations:
  7. scheduler.alpha.kubernetes.io/critical-pod: ''
  8. seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
  9. labels:
  10. k8s-app: gcp-lb-controller
  11. version: v1.2.3
  12. kubernetes.io/name: "GLBC"
  13. spec:
  14. terminationGracePeriodSeconds: 600
  15. hostNetwork: true
  16. containers:
  17. - image: k8s.gcr.io/ingress-gce-glbc-amd64:v1.2.3
  18. livenessProbe:
  19. httpGet:
  20. path: /healthz
  21. port: 8086
  22. scheme: HTTP
  23. initialDelaySeconds: 30
  24. # healthz reaches out to GCE
  25. periodSeconds: 30
  26. timeoutSeconds: 15
  27. successThreshold: 1
  28. failureThreshold: 5
  29. name: l7-lb-controller
  30. volumeMounts:
  31. - mountPath: /etc/gce.conf
  32. name: cloudconfig
  33. readOnly: true
  34. - mountPath: /var/log/glbc.log
  35. name: logfile
  36. readOnly: false
  37. - name: srvkube
  38. mountPath: /etc/srv/kubernetes/l7-lb-controller
  39. readOnly: true
  40. resources:
  41. # Request is set to accommodate this pod alongside the other
  42. # master components on a single core master.
  43. # TODO: Make resource requirements depend on the size of the cluster
  44. requests:
  45. cpu: 10m
  46. memory: 50Mi
  47. command:
  48. # TODO: split this out into args when we no longer need to pipe stdout to a file #6428
  49. - sh
  50. - -c
  51. - 'exec /glbc --gce-ratelimit=ga.Operations.Get,qps,10,100 --gce-ratelimit=alpha.Operations.Get,qps,10,100 --gce-ratelimit=ga.BackendServices.Get,qps,1.8,1 --gce-ratelimit=ga.HealthChecks.Get,qps,1.8,1 --gce-ratelimit=alpha.HealthChecks.Get,qps,1.8,1 --gce-ratelimit=beta.NetworkEndpointGroups.Get,qps,1.8,1 --gce-ratelimit=beta.NetworkEndpointGroups.AttachNetworkEndpoints,qps,1.8,1 --gce-ratelimit=beta.NetworkEndpointGroups.DetachNetworkEndpoints,qps,1.8,1 --gce-ratelimit=beta.NetworkEndpointGroups.ListNetworkEndpoints,qps,1.8,1 --verbose --kubeconfig=/etc/srv/kubernetes/l7-lb-controller/kubeconfig --default-backend-service=kube-system/default-http-backend --sync-period=600s --running-in-cluster=false --use-real-cloud=true --config-file-path=/etc/gce.conf --healthz-port=8086 1>>/var/log/glbc.log 2>&1'
  52. volumes:
  53. - hostPath:
  54. path: /etc/gce.conf
  55. type: FileOrCreate
  56. name: cloudconfig
  57. - hostPath:
  58. path: /var/log/glbc.log
  59. type: FileOrCreate
  60. name: logfile
  61. - name: srvkube
  62. hostPath:
  63. path: /etc/srv/kubernetes/l7-lb-controller