-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26048 from bprashanth/ing_master
Automatic merge from submit-queue Run l7 controller on master Fixes #23663, needs kubernetes-retired/contrib#680 @roberthbailey @kubernetes/goog-cluster
- Loading branch information
Showing
7 changed files
with
97 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: l7-lb-controller-v0.6.3 | ||
namespace: kube-system | ||
labels: | ||
k8s-app: glbc | ||
version: v0.6.3 | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: "GLBC" | ||
spec: | ||
terminationGracePeriodSeconds: 600 | ||
hostNetwork: true | ||
containers: | ||
- image: gcr.io/google_containers/glbc:0.6.3 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8086 | ||
scheme: HTTP | ||
initialDelaySeconds: 30 | ||
# healthz reaches out to GCE | ||
periodSeconds: 30 | ||
timeoutSeconds: 5 | ||
name: l7-lb-controller | ||
volumeMounts: | ||
- mountPath: /etc/gce.conf | ||
name: cloudconfig | ||
readOnly: true | ||
- mountPath: /var/log/glbc.log | ||
name: logfile | ||
readOnly: false | ||
resources: | ||
# Request and limits are set to accomodate this pod alongside the other | ||
# master components on a single core master. | ||
limits: | ||
cpu: 50m | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 50Mi | ||
command: | ||
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428 | ||
- sh | ||
- -c | ||
- '/glbc --default-backend-service=kube-system/default-http-backend --sync-period=60s --running-in-cluster=false --use-real-cloud=true --config-file-path=/etc/gce.conf --healthz-port=8086 1>>/var/log/glbc.log 2>&1' | ||
volumes: | ||
- hostPath: | ||
path: /etc/gce.conf | ||
name: cloudconfig | ||
- hostPath: | ||
path: /var/log/glbc.log | ||
name: logfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/etc/kubernetes/manifests/glbc.manifest: | ||
file.managed: | ||
- source: salt://l7-gcp/glbc.manifest | ||
- template: jinja | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
- makedirs: true | ||
- dir_mode: 755 | ||
|
||
/var/log/glbc.log: | ||
file.managed: | ||
- user: root | ||
- group: root | ||
- mode: 644 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters