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
924015dc
Commit
924015dc
authored
Apr 22, 2015
by
CJ Cullen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7182 from justinsb/aws_fix_hostname
AWS: Set hostname_override for minions, back to fully-qualified name
parents
26aeb6c3
4120849c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
salt-minion.sh
cluster/aws/templates/salt-minion.sh
+12
-0
No files found.
cluster/aws/templates/salt-minion.sh
View file @
924015dc
...
...
@@ -30,6 +30,18 @@ grains:
cloud: aws
EOF
# We set the hostname_override to the full EC2 private dns name
# we'd like to use EC2 instance-id, but currently the kubelet health-check assumes the name
# is resolvable, although that check should be going away entirely (#7092)
if
[[
-z
"
${
HOSTNAME_OVERRIDE
}
"
]]
;
then
HOSTNAME_OVERRIDE
=
`
curl
--silent
curl http://169.254.169.254/2007-01-19/meta-data/local-hostname
`
fi
if
[[
-n
"
${
HOSTNAME_OVERRIDE
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
hostname_override: "
${
HOSTNAME_OVERRIDE
}
"
EOF
fi
if
[[
-n
"
${
DOCKER_OPTS
}
"
]]
;
then
cat
<<
EOF
>>/etc/salt/minion.d/grains.conf
...
...
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