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
639a7dac
Commit
639a7dac
authored
Jul 06, 2015
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10790 from satnam6502/fixns
Wait for service accounts in the kube-system namesapce
parents
0a201aff
90e10552
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
kube-addons.sh
cluster/saltbase/salt/kube-addons/kube-addons.sh
+6
-5
No files found.
cluster/saltbase/salt/kube-addons/kube-addons.sh
View file @
639a7dac
...
...
@@ -141,16 +141,17 @@ for k,v in yaml.load(sys.stdin).iteritems():
'''
<
"
${
kube_env_yaml
}
"
)
fi
# Wait for the default service account
# Create the namespace that will be used to host the cluster-level add-ons.
start_addon /etc/kubernetes/addons/namespace.yaml 100 10
""
&
# Wait for the default service account to be created in the kube-system namespace.
token_found
=
""
while
[
-z
"
${
token_found
}
"
]
;
do
sleep
.5
token_found
=
$(${
KUBECTL
}
get serviceaccount default
-o
template
-t
"{{with index .secrets 0}}{{.name}}{{end}}"
||
true
)
token_found
=
$(${
KUBECTL
}
get
--namespace
=
"
${
SYSTEM_NAMESPACE
}
"
serviceaccount default
-o
template
-t
"{{with index .secrets 0}}{{.name}}{{end}}"
||
true
)
done
echo
"== default service account has token
${
token_found
}
=="
start_addon /etc/kubernetes/addons/namespace.yaml 100 10
""
&
echo
"== default service account in the
${
SYSTEM_NAMESPACE
}
namespace has token
${
token_found
}
=="
# Generate secrets for "internal service accounts".
# TODO(etune): move to a completely yaml/object based
...
...
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