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
f819cada
Commit
f819cada
authored
Oct 20, 2016
by
Michael Taufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a bare-bones level of indirection for GCI mounter
This is the bare bones scaffolding from @vishh's PR #34787
parent
6fdb2048
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
1 deletion
+27
-1
release.sh
build/lib/release.sh
+1
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+1
-0
configure.sh
cluster/gce/gci/configure.sh
+2
-1
master.yaml
cluster/gce/gci/master.yaml
+1
-0
mounter
cluster/gce/gci/mounter/mounter
+21
-0
node.yaml
cluster/gce/gci/node.yaml
+1
-0
No files found.
build/lib/release.sh
View file @
f819cada
...
@@ -320,6 +320,7 @@ function kube::release::package_kube_manifests_tarball() {
...
@@ -320,6 +320,7 @@ function kube::release::package_kube_manifests_tarball() {
cp
"
${
salt_dir
}
/e2e-image-puller/e2e-image-puller.manifest"
"
${
dst_dir
}
/"
cp
"
${
salt_dir
}
/e2e-image-puller/e2e-image-puller.manifest"
"
${
dst_dir
}
/"
cp
"
${
KUBE_ROOT
}
/cluster/gce/trusty/configure-helper.sh"
"
${
dst_dir
}
/trusty-configure-helper.sh"
cp
"
${
KUBE_ROOT
}
/cluster/gce/trusty/configure-helper.sh"
"
${
dst_dir
}
/trusty-configure-helper.sh"
cp
"
${
KUBE_ROOT
}
/cluster/gce/gci/configure-helper.sh"
"
${
dst_dir
}
/gci-configure-helper.sh"
cp
"
${
KUBE_ROOT
}
/cluster/gce/gci/configure-helper.sh"
"
${
dst_dir
}
/gci-configure-helper.sh"
cp
"
${
KUBE_ROOT
}
/cluster/gce/gci/mounter"
"
${
dst_dir
}
/gci-mounter"
cp
"
${
KUBE_ROOT
}
/cluster/gce/gci/health-monitor.sh"
"
${
dst_dir
}
/health-monitor.sh"
cp
"
${
KUBE_ROOT
}
/cluster/gce/gci/health-monitor.sh"
"
${
dst_dir
}
/health-monitor.sh"
cp
-r
"
${
salt_dir
}
/kube-admission-controls/limit-range"
"
${
dst_dir
}
"
cp
-r
"
${
salt_dir
}
/kube-admission-controls/limit-range"
"
${
dst_dir
}
"
local
objects
local
objects
...
...
cluster/gce/gci/configure-helper.sh
View file @
f819cada
...
@@ -475,6 +475,7 @@ function start-kubelet {
...
@@ -475,6 +475,7 @@ function start-kubelet {
flags+
=
" --config=/etc/kubernetes/manifests"
flags+
=
" --config=/etc/kubernetes/manifests"
flags+
=
" --kubelet-cgroups=/kubelet"
flags+
=
" --kubelet-cgroups=/kubelet"
flags+
=
" --system-cgroups=/system"
flags+
=
" --system-cgroups=/system"
flags+
=
" --mounter-path=
${
KUBE_HOME
}
/bin/mounter"
if
[[
-n
"
${
KUBELET_PORT
:-}
"
]]
;
then
if
[[
-n
"
${
KUBELET_PORT
:-}
"
]]
;
then
flags+
=
" --port=
${
KUBELET_PORT
}
"
flags+
=
" --port=
${
KUBELET_PORT
}
"
...
...
cluster/gce/gci/configure.sh
View file @
f819cada
...
@@ -99,7 +99,7 @@ function split-commas {
...
@@ -99,7 +99,7 @@ function split-commas {
}
}
# Downloads kubernetes binaries and kube-system manifest tarball, unpacks them,
# Downloads kubernetes binaries and kube-system manifest tarball, unpacks them,
# and places them into suitable directories. Files are placed in /home/kubernetes.
# and places them into suitable directories. Files are placed in /home/kubernetes.
function
install-kube-binary-config
{
function
install-kube-binary-config
{
cd
"
${
KUBE_HOME
}
"
cd
"
${
KUBE_HOME
}
"
local
-r
server_binary_tar_urls
=(
$(
split-commas
"
${
SERVER_BINARY_TAR_URL
}
"
)
)
local
-r
server_binary_tar_urls
=(
$(
split-commas
"
${
SERVER_BINARY_TAR_URL
}
"
)
)
...
@@ -171,6 +171,7 @@ function install-kube-binary-config {
...
@@ -171,6 +171,7 @@ function install-kube-binary-config {
xargs
sed
-ri
"s@(image
\"
:
\s
+
\"
)gcr.io/google_containers@
\1
${
kube_addon_registry
}
@"
xargs
sed
-ri
"s@(image
\"
:
\s
+
\"
)gcr.io/google_containers@
\1
${
kube_addon_registry
}
@"
fi
fi
cp
"
${
dst_dir
}
/kubernetes/gci-trusty/gci-configure-helper.sh"
"
${
KUBE_HOME
}
/bin/configure-helper.sh"
cp
"
${
dst_dir
}
/kubernetes/gci-trusty/gci-configure-helper.sh"
"
${
KUBE_HOME
}
/bin/configure-helper.sh"
cp
"
${
dst_dir
}
/kubernetes/gci-trusty/gci-mounter"
"
${
KUBE_HOME
}
/bin/mounter"
cp
"
${
dst_dir
}
/kubernetes/gci-trusty/health-monitor.sh"
"
${
KUBE_HOME
}
/bin/health-monitor.sh"
cp
"
${
dst_dir
}
/kubernetes/gci-trusty/health-monitor.sh"
"
${
KUBE_HOME
}
/bin/health-monitor.sh"
chmod
-R
755
"
${
kube_bin
}
"
chmod
-R
755
"
${
kube_bin
}
"
...
...
cluster/gce/gci/master.yaml
View file @
f819cada
...
@@ -34,6 +34,7 @@ write_files:
...
@@ -34,6 +34,7 @@ write_files:
Type=oneshot
Type=oneshot
RemainAfterExit=yes
RemainAfterExit=yes
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/mounter
ExecStart=/home/kubernetes/bin/configure-helper.sh
ExecStart=/home/kubernetes/bin/configure-helper.sh
[Install]
[Install]
...
...
cluster/gce/gci/mounter/mounter
0 → 100644
View file @
f819cada
#!/bin/bash
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set
-e
set
-o
pipefail
sudo
/bin/mount
"
$@
"
\ No newline at end of file
cluster/gce/gci/node.yaml
View file @
f819cada
...
@@ -34,6 +34,7 @@ write_files:
...
@@ -34,6 +34,7 @@ write_files:
Type=oneshot
Type=oneshot
RemainAfterExit=yes
RemainAfterExit=yes
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh
ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/mounter
ExecStart=/home/kubernetes/bin/configure-helper.sh
ExecStart=/home/kubernetes/bin/configure-helper.sh
[Install]
[Install]
...
...
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