2016-04-05 00:28:52 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
2018-07-30 18:40:36 +00:00
|
|
|
name: l7-lb-controller-v1.2.3
|
2016-04-05 00:28:52 +00:00
|
|
|
namespace: kube-system
|
2017-06-12 22:22:04 +00:00
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
2018-05-24 17:31:28 +00:00
|
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
2016-04-05 00:28:52 +00:00
|
|
|
labels:
|
2017-07-19 22:15:54 +00:00
|
|
|
k8s-app: gcp-lb-controller
|
2018-07-30 18:40:36 +00:00
|
|
|
version: v1.2.3
|
2016-04-05 00:28:52 +00:00
|
|
|
kubernetes.io/name: "GLBC"
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 600
|
|
|
|
hostNetwork: true
|
|
|
|
containers:
|
2018-07-30 18:40:36 +00:00
|
|
|
- image: k8s.gcr.io/ingress-gce-glbc-amd64:v1.2.3
|
2016-04-05 00:28:52 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8086
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
# healthz reaches out to GCE
|
|
|
|
periodSeconds: 30
|
2016-06-02 20:05:02 +00:00
|
|
|
timeoutSeconds: 15
|
|
|
|
successThreshold: 1
|
|
|
|
failureThreshold: 5
|
2016-04-05 00:28:52 +00:00
|
|
|
name: l7-lb-controller
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/gce.conf
|
|
|
|
name: cloudconfig
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: /var/log/glbc.log
|
|
|
|
name: logfile
|
|
|
|
readOnly: false
|
|
|
|
resources:
|
2018-01-31 19:16:39 +00:00
|
|
|
# Request is set to accommodate this pod alongside the other
|
2016-05-28 23:24:40 +00:00
|
|
|
# master components on a single core master.
|
2016-09-09 09:17:31 +00:00
|
|
|
# TODO: Make resource requirements depend on the size of the cluster
|
2016-04-05 00:28:52 +00:00
|
|
|
requests:
|
2018-09-13 09:13:07 +00:00
|
|
|
cpu: 10m
|
2016-04-05 00:28:52 +00:00
|
|
|
memory: 50Mi
|
|
|
|
command:
|
|
|
|
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428
|
|
|
|
- sh
|
|
|
|
- -c
|
2018-06-21 18:07:17 +00:00
|
|
|
- '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 --apiserver-host=http://localhost:8080 --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'
|
2016-04-05 00:28:52 +00:00
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
path: /etc/gce.conf
|
2017-06-18 13:34:24 +00:00
|
|
|
type: FileOrCreate
|
2016-04-05 00:28:52 +00:00
|
|
|
name: cloudconfig
|
|
|
|
- hostPath:
|
|
|
|
path: /var/log/glbc.log
|
2017-06-18 13:34:24 +00:00
|
|
|
type: FileOrCreate
|
2016-04-05 00:28:52 +00:00
|
|
|
name: logfile
|