Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d6664a23
Commit
d6664a23
authored
Feb 22, 2019
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare switch from beta.kubernetes.io/metadata-proxy-ready to…
Prepare switch from beta.kubernetes.io/metadata-proxy-ready to cloud.google.com/metadata-proxy-ready
parent
89752337
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
metadata-proxy.yaml
cluster/addons/metadata-proxy/gce/metadata-proxy.yaml
+1
-0
config-default.sh
cluster/gce/config-default.sh
+2
-0
config-test.sh
cluster/gce/config-test.sh
+2
-0
No files found.
cluster/addons/metadata-proxy/gce/metadata-proxy.yaml
View file @
d6664a23
...
@@ -88,6 +88,7 @@ spec:
...
@@ -88,6 +88,7 @@ spec:
fieldPath
:
metadata.namespace
fieldPath
:
metadata.namespace
# END_PROMETHEUS_TO_SD
# END_PROMETHEUS_TO_SD
nodeSelector
:
nodeSelector
:
# TODO(liggitt): switch to cloud.google.com/metadata-proxy-ready=true in v1.16
beta.kubernetes.io/metadata-proxy-ready
:
"
true"
beta.kubernetes.io/metadata-proxy-ready
:
"
true"
beta.kubernetes.io/os
:
linux
beta.kubernetes.io/os
:
linux
terminationGracePeriodSeconds
:
30
terminationGracePeriodSeconds
:
30
cluster/gce/config-default.sh
View file @
d6664a23
...
@@ -211,6 +211,8 @@ ENABLE_METADATA_CONCEALMENT="${ENABLE_METADATA_CONCEALMENT:-false}" # true, fals
...
@@ -211,6 +211,8 @@ ENABLE_METADATA_CONCEALMENT="${ENABLE_METADATA_CONCEALMENT:-false}" # true, fals
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
# Put the necessary label on the node so the daemonset gets scheduled.
# Put the necessary label on the node so the daemonset gets scheduled.
NODE_LABELS
=
"
${
NODE_LABELS
}
,cloud.google.com/metadata-proxy-ready=true"
# TODO(liggitt): remove this in v1.16
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
# Add to the provider custom variables.
# Add to the provider custom variables.
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
ENABLE_METADATA_CONCEALMENT METADATA_CONCEALMENT_NO_FIREWALL"
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
ENABLE_METADATA_CONCEALMENT METADATA_CONCEALMENT_NO_FIREWALL"
...
...
cluster/gce/config-test.sh
View file @
d6664a23
...
@@ -251,6 +251,8 @@ ENABLE_METADATA_CONCEALMENT="${ENABLE_METADATA_CONCEALMENT:-true}" # true, false
...
@@ -251,6 +251,8 @@ ENABLE_METADATA_CONCEALMENT="${ENABLE_METADATA_CONCEALMENT:-true}" # true, false
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
METADATA_CONCEALMENT_NO_FIREWALL
=
"
${
METADATA_CONCEALMENT_NO_FIREWALL
:-
false
}
"
# true, false
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
if
[[
${
ENABLE_METADATA_CONCEALMENT
:-}
==
"true"
]]
;
then
# Put the necessary label on the node so the daemonset gets scheduled.
# Put the necessary label on the node so the daemonset gets scheduled.
NODE_LABELS
=
"
${
NODE_LABELS
}
,cloud.google.com/metadata-proxy-ready=true"
# TODO(liggitt): remove this in v1.16
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
NODE_LABELS
=
"
${
NODE_LABELS
}
,beta.kubernetes.io/metadata-proxy-ready=true"
# Add to the provider custom variables.
# Add to the provider custom variables.
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
ENABLE_METADATA_CONCEALMENT METADATA_CONCEALMENT_NO_FIREWALL"
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
ENABLE_METADATA_CONCEALMENT METADATA_CONCEALMENT_NO_FIREWALL"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment