Add selectable dns policy for kube-router (#6586)

pull/6637/head
Maxim Pogozhiy 2020-09-04 21:53:41 +10:00 committed by GitHub
parent f1566cb8c2
commit 0553814b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -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: []

View File

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

View File

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