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
c666b7f6
Commit
c666b7f6
authored
Mar 05, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22595 from justinsb/aws_fix_jessie_reboot
Auto commit by PR queue bot
parents
5dde64c4
0d8d63c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
util.sh
cluster/aws/jessie/util.sh
+1
-1
k8s-ebs-jessie-amd64-hvm.yml
cluster/cloudimages/k8s-ebs-jessie-amd64-hvm.yml
+4
-0
No files found.
cluster/aws/jessie/util.sh
View file @
c666b7f6
...
@@ -31,7 +31,7 @@ function detect-jessie-image () {
...
@@ -31,7 +31,7 @@ function detect-jessie-image () {
aws_account
=
"721322707521"
aws_account
=
"721322707521"
# TODO: we could use tags for the image
# TODO: we could use tags for the image
if
[[
-z
"
${
AWS_IMAGE_NAME
:-}
"
]]
;
then
if
[[
-z
"
${
AWS_IMAGE_NAME
:-}
"
]]
;
then
AWS_IMAGE_NAME
=
"k8s-1.2-debian-jessie-amd64-hvm-2016-0
2-24
-ebs"
AWS_IMAGE_NAME
=
"k8s-1.2-debian-jessie-amd64-hvm-2016-0
3-05
-ebs"
fi
fi
AWS_IMAGE
=
`
aws ec2 describe-images
--owner
${
aws_account
}
--filters
Name
=
name,Values
=
${
AWS_IMAGE_NAME
}
--query
Images[].ImageId
--output
text
`
AWS_IMAGE
=
`
aws ec2 describe-images
--owner
${
aws_account
}
--filters
Name
=
name,Values
=
${
AWS_IMAGE_NAME
}
--query
Images[].ImageId
--output
text
`
if
[[
-z
"
${
AWS_IMAGE
-
}
"
]]
;
then
if
[[
-z
"
${
AWS_IMAGE
-
}
"
]]
;
then
...
...
cluster/cloudimages/k8s-ebs-jessie-amd64-hvm.yml
View file @
c666b7f6
...
@@ -84,6 +84,10 @@ plugins:
...
@@ -84,6 +84,10 @@ plugins:
-
[
'
chroot'
,
'
{root}'
,
'
/bin/sh'
,
'
-c'
,
'
DEBIAN_FRONTEND=noninteractive
dpkg
--install
/tmp/docker.deb'
]
-
[
'
chroot'
,
'
{root}'
,
'
/bin/sh'
,
'
-c'
,
'
DEBIAN_FRONTEND=noninteractive
dpkg
--install
/tmp/docker.deb'
]
-
[
'
rm'
,
'
{root}/tmp/docker.deb'
]
-
[
'
rm'
,
'
{root}/tmp/docker.deb'
]
# Fix a cloud-init bug where it uses nobootwait
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789884
-
[
'
chroot'
,
'
{root}'
,
'
/bin/sh'
,
'
-c'
,
'
echo
"mount_default_fields:
[~,
~,
'
'
auto'
'
,
'
'
defaults,nofail'
'
,
'
'
0'
'
,
'
'
2'
'
]"
>
/etc/cloud/cloud.cfg.d/99_kubernetes.cfg'
]
# We perform a full replacement of some grub conf variables:
# We perform a full replacement of some grub conf variables:
# GRUB_CMDLINE_LINUX_DEFAULT (add memory cgroup)
# GRUB_CMDLINE_LINUX_DEFAULT (add memory cgroup)
# GRUB_TIMEOUT (remove boot delay)
# GRUB_TIMEOUT (remove boot delay)
...
...
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