mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
cluster/gce/coreos: Add command in addon templates.
As appc spec only has one field for executable path (Exec v.s. ENTRYPOINT + CMD), specifying only args will override the image's original ENTRYPOINT.
This commit is contained in:
parent
f93d9304a4
commit
9f2d219331
@ -63,6 +63,8 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
command:
|
||||||
|
- /glbc
|
||||||
args:
|
args:
|
||||||
- --default-backend-service=kube-system/default-http-backend
|
- --default-backend-service=kube-system/default-http-backend
|
||||||
- --sync-period=300s
|
- --sync-period=300s
|
@ -53,8 +53,9 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
command:
|
||||||
|
- /kube2sky
|
||||||
args:
|
args:
|
||||||
# command = "/kube2sky"
|
|
||||||
- -domain=${DNS_DOMAIN}
|
- -domain=${DNS_DOMAIN}
|
||||||
- name: skydns
|
- name: skydns
|
||||||
image: gcr.io/google_containers/skydns:2015-10-13-8c72f8c
|
image: gcr.io/google_containers/skydns:2015-10-13-8c72f8c
|
||||||
@ -66,8 +67,9 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
command:
|
||||||
|
- /skydns
|
||||||
args:
|
args:
|
||||||
# command = "/skydns"
|
|
||||||
- -machines=http://127.0.0.1:4001
|
- -machines=http://127.0.0.1:4001
|
||||||
- -addr=0.0.0.0:53
|
- -addr=0.0.0.0:53
|
||||||
- -ns-rotate=false
|
- -ns-rotate=false
|
||||||
@ -103,6 +105,8 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
|
command:
|
||||||
|
- /exechealthz
|
||||||
args:
|
args:
|
||||||
- -cmd=nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1 >/dev/null
|
- -cmd=nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1 >/dev/null
|
||||||
- -port=8080
|
- -port=8080
|
||||||
|
Loading…
Reference in New Issue
Block a user