|
|
@ -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 |
|
|
|