kube-router manifest DSR adjustments (#3828)
parent
01cd4cf1c6
commit
456596710e
|
@ -19,6 +19,9 @@
|
||||||
# Add LoadbBalancer IP of service status as set by the LB provider to the RIB so that it gets advertised to the BGP peers.
|
# Add LoadbBalancer IP of service status as set by the LB provider to the RIB so that it gets advertised to the BGP peers.
|
||||||
# kube_router_advertise_loadbalancer_ip: false
|
# kube_router_advertise_loadbalancer_ip: false
|
||||||
|
|
||||||
|
# Adjust manifest of kube-router daemonset template with DSR needed changes
|
||||||
|
# kube_router_enable_dsr: false
|
||||||
|
|
||||||
# Array of arbitrary extra arguments to kube-router, see
|
# Array of arbitrary extra arguments to kube-router, see
|
||||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
|
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
|
||||||
# kube_router_extra_args: []
|
# kube_router_extra_args: []
|
||||||
|
|
|
@ -18,6 +18,9 @@ kube_router_advertise_external_ip: false
|
||||||
# Add LoadbBalancer IP of service status as set by the LB provider to the RIB so that it gets advertised to the BGP peers.
|
# Add LoadbBalancer IP of service status as set by the LB provider to the RIB so that it gets advertised to the BGP peers.
|
||||||
kube_router_advertise_loadbalancer_ip: false
|
kube_router_advertise_loadbalancer_ip: false
|
||||||
|
|
||||||
|
# Adjust manifest of kube-router daemonset template with DSR needed changes
|
||||||
|
kube_router_enable_dsr: false
|
||||||
|
|
||||||
# Array of arbitrary extra arguments to kube-router, see
|
# Array of arbitrary extra arguments to kube-router, see
|
||||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
|
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
|
||||||
kube_router_extra_args: []
|
kube_router_extra_args: []
|
||||||
|
|
|
@ -113,6 +113,11 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{% if kube_router_enable_dsr %}
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run/docker.sock
|
||||||
|
readOnly: true
|
||||||
|
{% endif %}
|
||||||
- name: lib-modules
|
- name: lib-modules
|
||||||
mountPath: /lib/modules
|
mountPath: /lib/modules
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -147,12 +152,22 @@ spec:
|
||||||
- name: kubeconfig
|
- name: kubeconfig
|
||||||
mountPath: /var/lib/kube-router
|
mountPath: /var/lib/kube-router
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
|
{% if kube_router_enable_dsr %}
|
||||||
|
hostIPC: true
|
||||||
|
hostPID: true
|
||||||
|
{% endif %}
|
||||||
tolerations:
|
tolerations:
|
||||||
- operator: Exists
|
- operator: Exists
|
||||||
# Mark pod as critical for rescheduling (Will have no effect starting with kubernetes 1.12)
|
# Mark pod as critical for rescheduling (Will have no effect starting with kubernetes 1.12)
|
||||||
- key: CriticalAddonsOnly
|
- key: CriticalAddonsOnly
|
||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
volumes:
|
volumes:
|
||||||
|
{% if kube_router_enable_dsr %}
|
||||||
|
- name: docker-socket
|
||||||
|
hostPath:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
type: Socket
|
||||||
|
{% endif %}
|
||||||
- name: lib-modules
|
- name: lib-modules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
|
Loading…
Reference in New Issue