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 | |
tmeneau | 0f7e6d4 | 2017-10-16 17:18:29 -0400 | [diff] [blame] | 21 | The default pillar configuration will install the helm client on the target |
| 22 | node, and Tiller to the Kubernetes cluster (assuming kubectl config or local |
| 23 | cluster endpoint have already been configured. |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 24 | |
| 25 | Change version of helm being downloaded and installed: |
| 26 | |
| 27 | .. code-block:: yaml |
| 28 | |
| 29 | helm: |
| 30 | client: |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 31 | version: 2.6.0 # defaults to 2.6.2 currently |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 32 | download_hash: sha256=youneedtocalculatehashandputithere |
| 33 | |
| 34 | Don'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 | |
| 44 | Change 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 | |
| 53 | Install 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 | |
| 69 | Delete 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 | |
| 81 | Install 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: |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 90 | # directly translated to cluster definition in kubeconfig |
| 91 | cluster: |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 92 | server: https://kubernetes.example.com |
| 93 | certificate-authority-data: base64_of_ca_certificate |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 94 | cluster_name: kubernetes.example |
| 95 | # directly translated to user definition in kubeconfig |
| 96 | user: |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 97 | username: admin |
| 98 | password: uberadminpass |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 99 | user_name: admin |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 100 | |
| 101 | Change 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: |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 112 | # directly translated to cluster definition in kubeconfig |
| 113 | cluster: |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 114 | server: https://3.141.59.265 |
| 115 | certificate-authority-data: base64_of_ca_certificate |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 116 | # directly translated to user definition in kubeconfig |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 117 | user: |
| 118 | auth-provider: |
| 119 | name: gcp |
tmeneau | cf41dc3 | 2017-10-16 15:23:05 -0400 | [diff] [blame] | 120 | user_name: gce_user |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 121 | gce_service_token: base64_of_json_token_downloaded_from_cloud_console |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 122 | |
| 123 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 124 | More Information |
| 125 | ================ |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 126 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 127 | * https://github.com/kubernetes/charts |
| 128 | * https://fabric8.io/helm/ |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 129 | |
| 130 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 131 | Documentation and Bugs |
| 132 | ====================== |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 133 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 134 | To learn how to install and update salt-formulas, consult the documentation |
| 135 | available online at: |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 136 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 137 | http://salt-formulas.readthedocs.io/ |
| 138 | |
| 139 | In the unfortunate event that bugs are discovered, they should be reported to |
| 140 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 141 | formula: |
| 142 | |
| 143 | https://github.com/salt-formulas/salt-formula-helm/issues |
| 144 | |
| 145 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 146 | use Launchpad salt-formulas project: |
| 147 | |
| 148 | https://launchpad.net/salt-formulas |
| 149 | |
| 150 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 151 | |
| 152 | https://launchpad.net/~salt-formulas-users |
| 153 | |
| 154 | Developers wishing to work on the salt-formulas projects should always base |
| 155 | their work on master branch and submit pull request against specific formula. |
| 156 | |
| 157 | https://github.com/salt-formulas/salt-formula-home-assistant |
| 158 | |
| 159 | Any questions or feedback is always welcome so feel free to join our IRC |
| 160 | channel: |
| 161 | |
| 162 | #salt-formulas @ irc.freenode.net |