mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #15190 from dchen1107/fix
unset Kubelet flag for manifest_url for master node.
This commit is contained in:
commit
4b8f91fd0e
@ -281,6 +281,9 @@ network_provider: '$(echo "$NETWORK_PROVIDER")'
|
|||||||
opencontrail_tag: '$(echo "$OPENCONTRAIL_TAG")'
|
opencontrail_tag: '$(echo "$OPENCONTRAIL_TAG")'
|
||||||
opencontrail_kubernetes_tag: '$(echo "$OPENCONTRAIL_KUBERNETES_TAG")'
|
opencontrail_kubernetes_tag: '$(echo "$OPENCONTRAIL_KUBERNETES_TAG")'
|
||||||
opencontrail_public_subnet: '$(echo "$OPENCONTRAIL_PUBLIC_SUBNET")'
|
opencontrail_public_subnet: '$(echo "$OPENCONTRAIL_PUBLIC_SUBNET")'
|
||||||
|
enable_manifest_url: '$(echo "$ENABLE_MANIFEST_URL" | sed -e "s/'/''/g")'
|
||||||
|
manifest_url: '$(echo "$MANIFEST_URL" | sed -e "s/'/''/g")'
|
||||||
|
manifest_url_header: '$(echo "$MANIFEST_URL_HEADER" | sed -e "s/'/''/g")'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
|
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
|
||||||
|
@ -83,6 +83,9 @@ MASTER_KEY: $(yaml-quote ${MASTER_KEY_BASE64:-})
|
|||||||
KUBECFG_CERT: $(yaml-quote ${KUBECFG_CERT_BASE64:-})
|
KUBECFG_CERT: $(yaml-quote ${KUBECFG_CERT_BASE64:-})
|
||||||
KUBECFG_KEY: $(yaml-quote ${KUBECFG_KEY_BASE64:-})
|
KUBECFG_KEY: $(yaml-quote ${KUBECFG_KEY_BASE64:-})
|
||||||
KUBELET_APISERVER: $(yaml-quote ${KUBELET_APISERVER:-})
|
KUBELET_APISERVER: $(yaml-quote ${KUBELET_APISERVER:-})
|
||||||
|
ENABLE_MANIFEST_URL: $(yaml-quote ${ENABLE_MANIFEST_URL:-false})
|
||||||
|
MANIFEST_URL: $(yaml-quote ${MANIFEST_URL:-})
|
||||||
|
MANIFEST_URL_HEADER: $(yaml-quote ${MANIFEST_URL_HEADER:-})
|
||||||
EOF
|
EOF
|
||||||
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
|
if [ -n "${APISERVER_TEST_ARGS:-}" ]; then
|
||||||
cat >>$file <<EOF
|
cat >>$file <<EOF
|
||||||
|
@ -50,8 +50,9 @@
|
|||||||
{% set config = "--config=/etc/kubernetes/manifests" -%}
|
{% set config = "--config=/etc/kubernetes/manifests" -%}
|
||||||
|
|
||||||
{% set manifest_url = "" -%}
|
{% set manifest_url = "" -%}
|
||||||
{% if grains['roles'][0] == 'kubernetes-master' and grains.cloud in ['gce'] -%}
|
{% set manifest_url_header = "" -%}
|
||||||
{% set manifest_url = "--manifest-url=http://metadata.google.internal/computeMetadata/v1/instance/attributes/google-container-manifest --manifest-url-header=Metadata-Flavor:Google" -%}
|
{% if pillar.get('enable_manifest_url', '').lower() == 'true' %}
|
||||||
|
{% set manifest_url = "--manifest-url=" + pillar['manifest_url'] + " --manifest-url-header=" + pillar['manifest_url_header'] -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{% set hostname_override = "" -%}
|
{% set hostname_override = "" -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user