Add selectable dns policy for kube-router (#6586)
parent
f1566cb8c2
commit
0553814b4f
|
@ -39,6 +39,9 @@
|
|||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md#hairpin-mode
|
||||
# kube_router_support_hairpin_mode: false
|
||||
|
||||
# Select DNS Policy ClusterFirstWithHostNet, ClusterFirst, etc.
|
||||
# kube_router_dns_policy: ClusterFirstWithHostNet
|
||||
|
||||
# Array of annotations for 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
|
||||
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.
|
||||
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/bgp.md
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ spec:
|
|||
protocol: TCP
|
||||
{% endif %}
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
dnsPolicy: {{ kube_router_dns_policy }}
|
||||
{% if kube_router_enable_dsr %}
|
||||
hostIPC: true
|
||||
hostPID: true
|
||||
|
|
Loading…
Reference in New Issue