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
2426366e
Commit
2426366e
authored
Apr 07, 2015
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cAdvisor with moved docker root on AWS
We set up a symlink now, and we also pass docker_root into the kubelet. The symlink is probably sufficient, but doing both feels safer.
parent
1ccfa589
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
format-disks.sh
cluster/aws/templates/format-disks.sh
+5
-0
salt-master.sh
cluster/aws/templates/salt-master.sh
+12
-0
salt-minion.sh
cluster/aws/templates/salt-minion.sh
+8
-1
default
cluster/saltbase/salt/kubelet/default
+6
-1
No files found.
cluster/aws/templates/format-disks.sh
View file @
2426366e
...
...
@@ -60,7 +60,12 @@ else
mount
-t
btrfs
${
block_devices
[0]
}
/mnt
# Move docker to /mnt if we have it
if
[[
-d
/var/lib/docker
]]
;
then
mv
/var/lib/docker /mnt/
fi
mkdir
-p
/mnt/docker
ln
-s
/mnt/docker /var/lib/docker
DOCKER_ROOT
=
"/mnt/docker"
DOCKER_OPTS
=
"
${
DOCKER_OPTS
}
-g /mnt/docker"
fi
cluster/aws/templates/salt-master.sh
View file @
2426366e
...
...
@@ -26,6 +26,18 @@ grains:
cbr-cidr: "
${
MASTER_IP_RANGE
}
"
EOF
if
[[
-n
"
${
DOCKER_OPTS
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
docker_opts: '
$(
echo
"
$DOCKER_OPTS
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
if
[[
-n
"
${
DOCKER_ROOT
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
docker_root: '
$(
echo
"
$DOCKER_ROOT
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
cat
<<
EOF
> /etc/aws.conf
[Global]
Zone =
${
ZONE
}
...
...
cluster/aws/templates/salt-minion.sh
View file @
2426366e
...
...
@@ -31,12 +31,19 @@ grains:
EOF
if
[[
-n
"{DOCKER_OPTS}"
]]
;
then
if
[[
-n
"
$
{
DOCKER_OPTS
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
docker_opts: '
$(
echo
"
$DOCKER_OPTS
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
if
[[
-n
"
${
DOCKER_ROOT
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
docker_root: '
$(
echo
"
$DOCKER_ROOT
"
|
sed
-e
"s/'/''/g"
)
'
EOF
fi
# Install Salt
#
# We specify -X to avoid a race condition that can cause minion failure to
...
...
cluster/saltbase/salt/kubelet/default
View file @
2426366e
...
...
@@ -28,4 +28,9 @@
{% set cluster_domain = "--cluster_domain=" + pillar['dns_domain'] %}
{% endif %}
DAEMON_ARGS="{{daemon_args}} {{api_servers}} {{hostname_override}} {{config}} --allow_privileged={{pillar['allow_privileged']}} {{pillar['log_level']}} {{cluster_dns}} {{cluster_domain}}"
{% set docker_root = "" -%}
{% if grains.docker_root is defined -%}
{% set docker_root = " --docker_root=" + grains.docker_root -%}
{% endif -%}
DAEMON_ARGS="{{daemon_args}} {{api_servers}} {{hostname_override}} {{config}} --allow_privileged={{pillar['allow_privileged']}} {{pillar['log_level']}} {{cluster_dns}} {{cluster_domain}} {{docker_root}}"
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