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