Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
208ff8e3
Commit
208ff8e3
authored
7 years ago
by
Christopher Randles
Committed by
Matthew Mosesohn
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow for more customization of the tiller deploy (#1946)
parent
ec54b36e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes-apps/helm/defaults/main.yml
+12
-0
12 additions, 0 deletions
roles/kubernetes-apps/helm/defaults/main.yml
roles/kubernetes-apps/helm/tasks/main.yml
+7
-5
7 additions, 5 deletions
roles/kubernetes-apps/helm/tasks/main.yml
with
19 additions
and
5 deletions
roles/kubernetes-apps/helm/defaults/main.yml
+
12
−
0
View file @
208ff8e3
...
...
@@ -6,3 +6,15 @@ helm_home_dir: "/root/.helm"
# Deployment mode: host or docker
helm_deployment_type
:
docker
# Do not download the local repository cache on helm init
helm_skip_refresh
:
false
# Set URL for stable repository
# helm_stable_repo_url: "https://kubernetes-charts.storage.googleapis.com"
# Set node selector options for Tiller Deployment manifest.
# tiller_node_selectors: "key1=val1,key2=val2"
# Override values for the Tiller Deployment manifest.
# tiller_override: "key1=val1,key2=val2"
This diff is collapsed.
Click to expand it.
roles/kubernetes-apps/helm/tasks/main.yml
+
7
−
5
View file @
208ff8e3
...
...
@@ -27,13 +27,15 @@
when
:
dns_mode != 'none' and inventory_hostname == groups['kube-master'][0] and rbac_enabled
-
name
:
Helm | Install/upgrade helm
command
:
"
{{
bin_dir
}}/helm
init
--upgrade
--tiller-image={{
tiller_image_repo
}}:{{
tiller_image_tag
}}"
command
:
>
{{ bin_dir }}/helm init --upgrade --tiller-image={{ tiller_image_repo }}:{{ tiller_image_tag }} --tiller-namespace={{ system_namespace }}
{% if helm_skip_refresh %} --skip-refresh{% endif %}
{% if helm_stable_repo_url is defined %} --stable-repo-url {{ helm_stable_repo_url }}{% endif %}
{% if rbac_enabled %} --service-account=tiller{% endif %}
{% if tiller_node_selectors is defined %} --node-selectors {{ tiller_node_selectors }}{% endif %}
{% if tiller_override is defined %} --override {{ tiller_override }}{% endif %}
when
:
(helm_container is defined and helm_container.changed) or (helm_task_result is defined and helm_task_result.changed)
-
name
:
Helm | Patch tiller deployment for RBAC
command
:
"
{{bin_dir}}/kubectl
patch
deployment
tiller-deploy
-p
'{
\"
spec
\"
:{
\"
template
\"
:{
\"
spec
\"
:{
\"
serviceAccount
\"
:
\"
tiller
\"
}}}}'
-n
{{
system_namespace
}}"
when
:
rbac_enabled
-
name
:
Helm | Set up bash completion
shell
:
"
umask
022
&&
{{
bin_dir
}}/helm
completion
bash
>/etc/bash_completion.d/helm.sh"
when
:
((helm_container is defined and helm_container.changed) or (helm_task_result is defined and helm_task_result.changed)) and not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment