Add selectable dns policy for kube-router (#6586)
This commit is contained in:
parent
f1566cb8c2
commit
0553814b4f
3 changed files with 7 additions and 1 deletions
|
@ -39,6 +39,9 @@
|
||||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md#hairpin-mode
|
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md#hairpin-mode
|
||||||
# kube_router_support_hairpin_mode: false
|
# kube_router_support_hairpin_mode: false
|
||||||
|
|
||||||
|
# Select DNS Policy ClusterFirstWithHostNet, ClusterFirst, etc.
|
||||||
|
# kube_router_dns_policy: ClusterFirstWithHostNet
|
||||||
|
|
||||||
# Array of annotations for master
|
# Array of annotations for master
|
||||||
# kube_router_annotations_master: []
|
# kube_router_annotations_master: []
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,9 @@ kube_router_peer_router_ports: ~
|
||||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md#hairpin-mode
|
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md#hairpin-mode
|
||||||
kube_router_support_hairpin_mode: false
|
kube_router_support_hairpin_mode: false
|
||||||
|
|
||||||
|
# Select DNS Policy ClusterFirstWithHostNet, ClusterFirst, etc.
|
||||||
|
kube_router_dns_policy: ClusterFirstWithHostNet
|
||||||
|
|
||||||
# Adds annotations to kubernetes nodes for advanced configuration of BGP Peers.
|
# Adds annotations to kubernetes nodes for advanced configuration of BGP Peers.
|
||||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/bgp.md
|
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/bgp.md
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{% endif %}
|
{% endif %}
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: {{ kube_router_dns_policy }}
|
||||||
{% if kube_router_enable_dsr %}
|
{% if kube_router_enable_dsr %}
|
||||||
hostIPC: true
|
hostIPC: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
|
|
Loading…
Reference in a new issue