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
5563fbfb
Commit
5563fbfb
authored
Oct 17, 2017
by
Minhan Xia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GCE_GLBC_IMAGE to allow override glbc image
parent
74cd0f07
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
config-default.sh
cluster/gce/config-default.sh
+5
-0
config-test.sh
cluster/gce/config-test.sh
+5
-0
configure-helper.sh
cluster/gce/container-linux/configure-helper.sh
+6
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+6
-2
No files found.
cluster/gce/config-default.sh
View file @
5563fbfb
...
...
@@ -250,6 +250,11 @@ if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
GCE_ALPHA_FEATURES"
fi
# Override default GLBC image
if
[[
-n
"
${
GCE_GLBC_IMAGE
:-}
"
]]
;
then
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
GCE_GLBC_IMAGE"
fi
# Admission Controllers to invoke prior to persisting objects in cluster
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,Priority,ResourceQuota
...
...
cluster/gce/config-test.sh
View file @
5563fbfb
...
...
@@ -287,6 +287,11 @@ if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
GCE_ALPHA_FEATURES"
fi
# Override default GLBC image
if
[[
-n
"
${
GCE_GLBC_IMAGE
:-}
"
]]
;
then
PROVIDER_VARS
=
"
${
PROVIDER_VARS
:-}
GCE_GLBC_IMAGE"
fi
# If we included ResourceQuota, we should keep it at the end of the list to prevent incrementing quota usage prematurely.
ADMISSION_CONTROL
=
"
${
KUBE_ADMISSION_CONTROL
:-
Initializers
,NamespaceLifecycle,LimitRanger,ServiceAccount,PersistentVolumeLabel,PodPreset,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,Priority,ResourceQuota
}
"
...
...
cluster/gce/container-linux/configure-helper.sh
View file @
5563fbfb
...
...
@@ -1358,8 +1358,12 @@ function start-lb-controller {
echo
"Start GCE L7 pod"
prepare-log-file /var/log/glbc.log
setup-addon-manifests
"addons"
"cluster-loadbalancing/glbc"
cp
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
\
/etc/kubernetes/manifests/
local
-r
glbc_manifest
=
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
if
[[
!
-z
"
${
GCE_GLBC_IMAGE
:-}
"
]]
;
then
sed
-i
"s@image:.*@image:
${
GCE_GLBC_IMAGE
}
@"
"
${
glbc_manifest
}
"
fi
cp
"
${
glbc_manifest
}
"
/etc/kubernetes/manifests/
fi
}
...
...
cluster/gce/gci/configure-helper.sh
View file @
5563fbfb
...
...
@@ -1878,8 +1878,12 @@ function start-lb-controller {
echo
"Start GCE L7 pod"
prepare-log-file /var/log/glbc.log
setup-addon-manifests
"addons"
"cluster-loadbalancing/glbc"
cp
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
\
/etc/kubernetes/manifests/
local
-r
glbc_manifest
=
"
${
KUBE_HOME
}
/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
if
[[
!
-z
"
${
GCE_GLBC_IMAGE
:-}
"
]]
;
then
sed
-i
"s@image:.*@image:
${
GCE_GLBC_IMAGE
}
@"
"
${
glbc_manifest
}
"
fi
cp
"
${
glbc_manifest
}
"
/etc/kubernetes/manifests/
fi
}
...
...
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