kube-router manifest DSR adjustments (#3828)

This commit is contained in:
Zohar Mamedov
2018-12-10 00:40:39 -08:00
committed by Kubernetes Prow Robot
parent 01cd4cf1c6
commit 456596710e
3 changed files with 21 additions and 0 deletions

View File

@@ -113,6 +113,11 @@ spec:
securityContext:
privileged: true
volumeMounts:
{% if kube_router_enable_dsr %}
- name: docker-socket
mountPath: /var/run/docker.sock
readOnly: true
{% endif %}
- name: lib-modules
mountPath: /lib/modules
readOnly: true
@@ -147,12 +152,22 @@ spec:
- name: kubeconfig
mountPath: /var/lib/kube-router
hostNetwork: true
{% if kube_router_enable_dsr %}
hostIPC: true
hostPID: true
{% endif %}
tolerations:
- operator: Exists
# Mark pod as critical for rescheduling (Will have no effect starting with kubernetes 1.12)
- key: CriticalAddonsOnly
operator: "Exists"
volumes:
{% if kube_router_enable_dsr %}
- name: docker-socket
hostPath:
path: /var/run/docker.sock
type: Socket
{% endif %}
- name: lib-modules
hostPath:
path: /lib/modules