blob: 91bb364994dd549abc4b879b69cc6d9867823ee1 [file] [log] [blame]
Yuriy Taraday131227e2017-06-22 15:09:34 +04001
Ales Komarekba180382017-09-14 09:42:03 +02002============
3Helm formula
4============
Yuriy Taraday131227e2017-06-22 15:09:34 +04005
Yuriy Taraday434490c2017-08-22 17:40:01 +04006This formula installs Helm client, installs Tiller on Kubernetes cluster and
7creates releases in it.
Yuriy Taraday131227e2017-06-22 15:09:34 +04008
Ales Komarekba180382017-09-14 09:42:03 +02009
Yuriy Taraday131227e2017-06-22 15:09:34 +040010Sample pillars
11==============
12
tmeneaucf41dc32017-10-16 15:23:05 -040013See the [pillar.example](pillar.example) for a documented example pillar file.
14
15Example Configurations
16======================
17
18_The following examples demonstrate configuring the formula for different
19use cases._
20
tmeneau0f7e6d42017-10-16 17:18:29 -040021The default pillar configuration will install the helm client on the target
22node, and Tiller to the Kubernetes cluster (assuming kubectl config or local
23cluster endpoint have already been configured.
Yuriy Taraday434490c2017-08-22 17:40:01 +040024
25Change version of helm being downloaded and installed:
26
27.. code-block:: yaml
28
29 helm:
30 client:
tmeneaucf41dc32017-10-16 15:23:05 -040031 version: 2.6.0 # defaults to 2.6.2 currently
Yuriy Taraday434490c2017-08-22 17:40:01 +040032 download_hash: sha256=youneedtocalculatehashandputithere
33
34Don't install tiller and use existing one exposed on some well-known address:
35
36.. code-block:: yaml
37
38 helm:
39 client:
40 tiller:
41 install: false
42 host: 10.11.12.13:14151
43
44Change namespace where tiller is isntalled and looked for:
45
46.. code-block:: yaml
47
48 helm:
49 client:
50 tiller:
51 namespace: not-kube-system # kube-system is default
52
53Install Mirantis repository and deploy zookeper chart from it:
54
55.. code-block:: yaml
56
57 helm:
58 client:
59 repos:
60 mirantisworkloads: https://mirantisworkloads.storage.googleapis.com/
61 releases:
62 zoo1:
63 name: my-zookeeper
64 chart: mirantisworkloads/zookeeper # we reference installed repo
65 version: 1.2.0 # select any available version
66 values:
67 logLevel: INFO # any values used by chart can specified here
68
69Delete that release:
70
71.. code-block:: yaml
72
73 helm:
74 client:
75 repos:
76 mirantisworkloads: https://mirantisworkloads.storage.googleapis.com/
77 releases:
78 zoo1:
79 enabled: false
80
81Install kubectl and manage remote cluster:
82
83.. code-block:: yaml
84
85 helm:
86 client:
87 kubectl:
88 install: true # installs kubectl 1.6.7 by default
89 config:
tmeneaucf41dc32017-10-16 15:23:05 -040090 # directly translated to cluster definition in kubeconfig
91 cluster:
Yuriy Taraday434490c2017-08-22 17:40:01 +040092 server: https://kubernetes.example.com
93 certificate-authority-data: base64_of_ca_certificate
tmeneaucf41dc32017-10-16 15:23:05 -040094 cluster_name: kubernetes.example
95 # directly translated to user definition in kubeconfig
96 user:
Yuriy Taraday434490c2017-08-22 17:40:01 +040097 username: admin
98 password: uberadminpass
tmeneaucf41dc32017-10-16 15:23:05 -040099 user_name: admin
Yuriy Taraday434490c2017-08-22 17:40:01 +0400100
101Change kubectl download URL and use it with GKE-based cluster:
102
103.. code-block:: yaml
104
105 helm:
106 client:
107 kubectl:
108 install: true
109 download_url: https://dl.k8s.io/v1.6.7/kubernetes-client-linux-amd64.tar.gz
110 download_hash: sha256=calculate_hash_here
111 config:
tmeneaucf41dc32017-10-16 15:23:05 -0400112 # directly translated to cluster definition in kubeconfig
113 cluster:
Yuriy Taraday434490c2017-08-22 17:40:01 +0400114 server: https://3.141.59.265
115 certificate-authority-data: base64_of_ca_certificate
tmeneaucf41dc32017-10-16 15:23:05 -0400116 # directly translated to user definition in kubeconfig
Yuriy Taraday434490c2017-08-22 17:40:01 +0400117 user:
118 auth-provider:
119 name: gcp
tmeneaucf41dc32017-10-16 15:23:05 -0400120 user_name: gce_user
Yuriy Taraday434490c2017-08-22 17:40:01 +0400121 gce_service_token: base64_of_json_token_downloaded_from_cloud_console
Yuriy Taraday131227e2017-06-22 15:09:34 +0400122
123
Ales Komarekba180382017-09-14 09:42:03 +0200124More Information
125================
Yuriy Taraday131227e2017-06-22 15:09:34 +0400126
Ales Komarekba180382017-09-14 09:42:03 +0200127* https://github.com/kubernetes/charts
128* https://fabric8.io/helm/
Yuriy Taraday131227e2017-06-22 15:09:34 +0400129
130
Ales Komarekba180382017-09-14 09:42:03 +0200131Documentation and Bugs
132======================
Yuriy Taraday131227e2017-06-22 15:09:34 +0400133
Ales Komarekba180382017-09-14 09:42:03 +0200134To learn how to install and update salt-formulas, consult the documentation
135available online at:
Yuriy Taraday131227e2017-06-22 15:09:34 +0400136
Ales Komarekba180382017-09-14 09:42:03 +0200137 http://salt-formulas.readthedocs.io/
138
139In the unfortunate event that bugs are discovered, they should be reported to
140the appropriate issue tracker. Use Github issue tracker for specific salt
141formula:
142
143 https://github.com/salt-formulas/salt-formula-helm/issues
144
145For feature requests, bug reports or blueprints affecting entire ecosystem,
146use Launchpad salt-formulas project:
147
148 https://launchpad.net/salt-formulas
149
150You can also join salt-formulas-users team and subscribe to mailing list:
151
152 https://launchpad.net/~salt-formulas-users
153
154Developers wishing to work on the salt-formulas projects should always base
155their work on master branch and submit pull request against specific formula.
156
157 https://github.com/salt-formulas/salt-formula-home-assistant
158
159Any questions or feedback is always welcome so feel free to join our IRC
160channel:
161
162 #salt-formulas @ irc.freenode.net