This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1527 from weaveworks/docsup
Use weaveworks/flux-get-started repo in docs
- Loading branch information
Showing
7 changed files
with
83 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) p | |
|
||
### Kubernetes | ||
|
||
Kubernetes >= v1.9 is recommended. Kubernetes v1.8 (the first to support | ||
Kubernetes >= v1.10 is recommended. Kubernetes v1.8 (the first to support | ||
Custom Resources) appears to have problems with repeated application of | ||
custom resources (see https://github.com/kubernetes/kubernetes/issues/53379). | ||
This means fluxd can fail to apply changes to FluxHelmRelease resources. | ||
This means fluxd can fail to apply changes to HelmRelease resources. | ||
|
||
### Helm | ||
|
||
|
@@ -27,24 +27,18 @@ until it can find one. | |
|
||
# Git repo | ||
|
||
- One repo containing both desired release state information and Charts | ||
themselves. | ||
- Release state information in the form of Custom Resources manifests is | ||
located under a particular path ("releaseconfig" by default; can be | ||
overriden). | ||
- Charts are colocated under another path ("charts" by default; can be | ||
overriden). Charts are subdirectories under the charts path. | ||
- One repo containing cluster config (i.e., Kubernetes YAMLs) and zero or more git repos containing Charts themselves. | ||
- Charts can be co-located with config in the git repo, or be from Helm repositories. | ||
- Custom Resource namespace reflects where the release should be done. | ||
Both the Helm release and its corresponding Custom Resource will | ||
live in this namespace. | ||
- Example of a test repo: https://github.com/weaveworks/flux-helm-test | ||
- Example of a test repo: https://github.com/weaveworks/flux-get-started | ||
|
||
## Installation | ||
|
||
We put together a simple [Get Started | ||
guide](../../site/helm-get-started.md) which takes about 5-10 minutes to follow. | ||
You will have a fully working Flux installation deploying workloads to your | ||
cluster. | ||
You will have a fully working Flux installation deploying workloads to your cluster. | ||
|
||
## Installing Flux using Helm | ||
|
||
|
@@ -56,11 +50,13 @@ Add the weaveworks repo: | |
helm repo add weaveworks https://weaveworks.github.io/flux | ||
``` | ||
|
||
#### To install the chart with the release name `flux`: | ||
#### To install the chart with the release name `flux` | ||
|
||
Replace `weaveworks/flux-get-started` with your own git repository and run helm install: | ||
|
||
```sh | ||
$ helm install --name flux \ | ||
--set git.url=ssh://[email protected]/weaveworks/flux-example \ | ||
--set [email protected]:weaveworks/flux-get-started \ | ||
--namespace flux \ | ||
weaveworks/flux | ||
``` | ||
|
@@ -69,6 +65,7 @@ weaveworks/flux | |
|
||
```sh | ||
helm install --name flux \ | ||
--set [email protected]:weaveworks/flux-get-started \ | ||
--set token=YOUR_WEAVE_CLOUD_SERVICE_TOKEN \ | ||
--namespace flux \ | ||
weaveworks/flux | ||
|
@@ -78,7 +75,7 @@ weaveworks/flux | |
|
||
```sh | ||
$ helm install --name flux \ | ||
--set git.url=ssh://[email protected]/weaveworks/flux-helm-test \ | ||
--set [email protected]:weaveworks/flux-get-started \ | ||
--set helmOperator.create=true \ | ||
--namespace flux \ | ||
weaveworks/flux | ||
|
@@ -110,14 +107,15 @@ using an alternate mechanism. | |
|
||
```sh | ||
YOUR_GIT_HOST=your_git_host.example.com | ||
YOUR_GIT_USER=your_git_user | ||
KNOWN_HOSTS='domain ssh-rsa line1 | ||
domain ecdsa-sha2-line2 | ||
domain ssh-ed25519 line3' | ||
|
||
helm install \ | ||
--name flux \ | ||
--set helmOperator.create=true \ | ||
--set git.url="ssh://git@${YOUR_GIT_HOST}:weaveworks/flux-helm-test.git" \ | ||
--set git.url="git@${YOUR_GIT_HOST}:${YOUR_GIT_USER}/flux-get-started" \ | ||
--set-string ssh.known_hosts="${KNOWN_HOSTS}" \ | ||
--namespace flux \ | ||
chart/flux | ||
|
@@ -129,11 +127,12 @@ using an alternate mechanism. | |
|
||
```sh | ||
YOUR_GIT_HOST=your_git_host.example.com | ||
YOUR_GIT_USER=your_git_user | ||
helm install \ | ||
--name flux \ | ||
--set helmOperator.create=true \ | ||
--set git.url="ssh://git@${YOUR_GIT_HOST}:weaveworks/flux-helm-test.git" \ | ||
--set git.url="git@${YOUR_GIT_HOST}:${YOUR_GIT_USER}/flux-get-started" \ | ||
--set-file ssh.known_hosts=/tmp/flux_known_hosts \ | ||
--namespace flux \ | ||
chart/flux | ||
|
@@ -209,15 +208,11 @@ The following tables lists the configurable parameters of the Weave Flux chart a | |
| `helmOperator.tag` | Helm operator image tag | `<VERSION>` | ||
| `helmOperator.pullPolicy` | Helm operator image pull policy | `IfNotPresent` | ||
| `helmOperator.updateChartDeps` | Update dependencies for charts | `true` | ||
| `helmOperator.git.pollInterval` | Period at which to poll git repo for new commits | `git.pollInterval` | ||
| `helmOperator.git.timeout` | Duration after which git operations time out | `git.timeout` | ||
| `helmOperator.chartsSyncInterval` | Interval at which to check for changed charts | `3m` | ||
| `helmOperator.chartsSyncTimeout` | Timeout when checking for changed charts | `1m` | ||
| `helmOperator.extraEnvs` | Extra environment variables for the Helm operator pod | `[]` | ||
| `helmOperator.git.url` | URL of git repo with Helm charts | `git.url` | ||
| `helmOperator.git.branch` | Branch of git repo to use for Helm charts | `master` | ||
| `helmOperator.git.chartsPath` | Path within git repo to locate Helm charts (relative path) | `charts` | ||
| `helmOperator.git.pollInterval` | Period at which to poll git repo for new commits | `git.pollInterval` | ||
| `helmOperator.git.timeout` | Duration after which git operations time out | `git.timeout` | ||
| `helmOperator.git.secretName` | Kubernetes secret with the SSH private key | None | ||
| `helmOperator.logReleaseDiffs` | Helm operator should log the diff when a chart release diverges (possibly insecure) | `false` | ||
| `helmOperator.tillerNamespace` | Namespace in which the Tiller server can be found | `kube-system` | ||
| `helmOperator.tls.enable` | Enable TLS for communicating with Tiller | `false` | ||
|
@@ -232,7 +227,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm | |
|
||
```sh | ||
$ helm upgrade --install --wait flux \ | ||
--set git.url=ssh://[email protected]/stefanprodan/podinfo \ | ||
--set [email protected]:stefanprodan/k8s-podinfo \ | ||
--set git.path=deploy/auto-scaling,deploy/local-storage \ | ||
--namespace flux \ | ||
weaveworks/flux | ||
|
@@ -244,6 +239,6 @@ Update Weave Flux version with: | |
|
||
```sh | ||
helm upgrade --reuse-values flux \ | ||
--set image.tag=1.7.1 \ | ||
--set image.tag=1.8.1 \ | ||
weaveworks/flux | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.