blob: 1bf7c332bb109562de4e220de98d1d6d5ddf1ed4 [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
Yuriy Taraday434490c2017-08-22 17:40:01 +040013Enable formula, install helm client on node and tiller on Kubernetes (assuming
14already configured kubectl config or local cluster endpoint):
Yuriy Taraday131227e2017-06-22 15:09:34 +040015
16.. code-block:: yaml
17
18 helm:
19 client:
20 enabled: true
Yuriy Taraday434490c2017-08-22 17:40:01 +040021
22Change version of helm being downloaded and installed:
23
24.. code-block:: yaml
25
26 helm:
27 client:
28 version: 2.6.0 # defaults to 2.4.2 currently
29 download_hash: sha256=youneedtocalculatehashandputithere
30
31Don't install tiller and use existing one exposed on some well-known address:
32
33.. code-block:: yaml
34
35 helm:
36 client:
37 tiller:
38 install: false
39 host: 10.11.12.13:14151
40
41Change namespace where tiller is isntalled and looked for:
42
43.. code-block:: yaml
44
45 helm:
46 client:
47 tiller:
48 namespace: not-kube-system # kube-system is default
49
50Install Mirantis repository and deploy zookeper chart from it:
51
52.. code-block:: yaml
53
54 helm:
55 client:
56 repos:
57 mirantisworkloads: https://mirantisworkloads.storage.googleapis.com/
58 releases:
59 zoo1:
60 name: my-zookeeper
61 chart: mirantisworkloads/zookeeper # we reference installed repo
62 version: 1.2.0 # select any available version
63 values:
64 logLevel: INFO # any values used by chart can specified here
65
66Delete that release:
67
68.. code-block:: yaml
69
70 helm:
71 client:
72 repos:
73 mirantisworkloads: https://mirantisworkloads.storage.googleapis.com/
74 releases:
75 zoo1:
76 enabled: false
77
78Install kubectl and manage remote cluster:
79
80.. code-block:: yaml
81
82 helm:
83 client:
84 kubectl:
85 install: true # installs kubectl 1.6.7 by default
86 config:
87 cluster: # directly translated to cluster definition in kubeconfig
88 server: https://kubernetes.example.com
89 certificate-authority-data: base64_of_ca_certificate
90 user: # same for user
91 username: admin
92 password: uberadminpass
93
94Change kubectl download URL and use it with GKE-based cluster:
95
96.. code-block:: yaml
97
98 helm:
99 client:
100 kubectl:
101 install: true
102 download_url: https://dl.k8s.io/v1.6.7/kubernetes-client-linux-amd64.tar.gz
103 download_hash: sha256=calculate_hash_here
104 config:
105 cluster: # directly translated to cluster definition in kubeconfig
106 server: https://3.141.59.265
107 certificate-authority-data: base64_of_ca_certificate
108 user:
109 auth-provider:
110 name: gcp
111 gce_service_token: base64_of_json_token_downloaded_from_cloud_console
Yuriy Taraday131227e2017-06-22 15:09:34 +0400112
113
Ales Komarekba180382017-09-14 09:42:03 +0200114More Information
115================
Yuriy Taraday131227e2017-06-22 15:09:34 +0400116
Ales Komarekba180382017-09-14 09:42:03 +0200117* https://github.com/kubernetes/charts
118* https://fabric8.io/helm/
Yuriy Taraday131227e2017-06-22 15:09:34 +0400119
120
Ales Komarekba180382017-09-14 09:42:03 +0200121Documentation and Bugs
122======================
Yuriy Taraday131227e2017-06-22 15:09:34 +0400123
Ales Komarekba180382017-09-14 09:42:03 +0200124To learn how to install and update salt-formulas, consult the documentation
125available online at:
Yuriy Taraday131227e2017-06-22 15:09:34 +0400126
Ales Komarekba180382017-09-14 09:42:03 +0200127 http://salt-formulas.readthedocs.io/
128
129In the unfortunate event that bugs are discovered, they should be reported to
130the appropriate issue tracker. Use Github issue tracker for specific salt
131formula:
132
133 https://github.com/salt-formulas/salt-formula-helm/issues
134
135For feature requests, bug reports or blueprints affecting entire ecosystem,
136use Launchpad salt-formulas project:
137
138 https://launchpad.net/salt-formulas
139
140You can also join salt-formulas-users team and subscribe to mailing list:
141
142 https://launchpad.net/~salt-formulas-users
143
144Developers wishing to work on the salt-formulas projects should always base
145their work on master branch and submit pull request against specific formula.
146
147 https://github.com/salt-formulas/salt-formula-home-assistant
148
149Any questions or feedback is always welcome so feel free to join our IRC
150channel:
151
152 #salt-formulas @ irc.freenode.net