mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Support running custom nodelocaldns yaml in gce.
This commit is contained in:
parent
c7c89f8c61
commit
7a7f856e22
@ -2630,6 +2630,7 @@ EOF
|
||||
function setup-nodelocaldns-manifest {
|
||||
setup-addon-manifests "addons" "0-dns/nodelocaldns"
|
||||
local -r localdns_file="${dst_dir}/0-dns/nodelocaldns/nodelocaldns.yaml"
|
||||
setup-addon-custom-yaml "addons" "0-dns/nodelocaldns" "nodelocaldns.yaml" "${CUSTOM_NODELOCAL_DNS_YAML:-}"
|
||||
# Replace the sed configurations with variable values.
|
||||
sed -i -e "s/__PILLAR__DNS__DOMAIN__/${DNS_DOMAIN}/g" "${localdns_file}"
|
||||
sed -i -e "s/__PILLAR__DNS__SERVER__/${DNS_SERVER_IP}/g" "${localdns_file}"
|
||||
|
Loading…
Reference in New Issue
Block a user