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 | |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 13 | Enable formula, install helm client on node and tiller on Kubernetes (assuming |
| 14 | already configured kubectl config or local cluster endpoint): |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 15 | |
| 16 | .. code-block:: yaml |
| 17 | |
| 18 | helm: |
| 19 | client: |
| 20 | enabled: true |
Yuriy Taraday | 434490c | 2017-08-22 17:40:01 +0400 | [diff] [blame] | 21 | |
| 22 | Change 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 | |
| 31 | Don'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 | |
| 41 | Change 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 | |
| 50 | Install 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 | |
| 66 | Delete 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 | |
| 78 | Install 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 | |
| 94 | Change 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 Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 112 | |
| 113 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 114 | More Information |
| 115 | ================ |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 116 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 117 | * https://github.com/kubernetes/charts |
| 118 | * https://fabric8.io/helm/ |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 119 | |
| 120 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 121 | Documentation and Bugs |
| 122 | ====================== |
Yuriy Taraday | 131227e | 2017-06-22 15:09:34 +0400 | [diff] [blame] | 123 | |
Ales Komarek | ba18038 | 2017-09-14 09:42:03 +0200 | [diff] [blame] | 124 | To learn how to install and update salt-formulas, consult the documentation |
| 125 | available online at: |
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 | http://salt-formulas.readthedocs.io/ |
| 128 | |
| 129 | In the unfortunate event that bugs are discovered, they should be reported to |
| 130 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 131 | formula: |
| 132 | |
| 133 | https://github.com/salt-formulas/salt-formula-helm/issues |
| 134 | |
| 135 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 136 | use Launchpad salt-formulas project: |
| 137 | |
| 138 | https://launchpad.net/salt-formulas |
| 139 | |
| 140 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 141 | |
| 142 | https://launchpad.net/~salt-formulas-users |
| 143 | |
| 144 | Developers wishing to work on the salt-formulas projects should always base |
| 145 | their work on master branch and submit pull request against specific formula. |
| 146 | |
| 147 | https://github.com/salt-formulas/salt-formula-home-assistant |
| 148 | |
| 149 | Any questions or feedback is always welcome so feel free to join our IRC |
| 150 | channel: |
| 151 | |
| 152 | #salt-formulas @ irc.freenode.net |