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
Use weaveworks/flux-get-started repo in docs #1527
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b31a3b3
Update chart readme
stefanprodan 6eac2db
Fix links in Helm integration doc
stefanprodan 0d3ce71
Update annotations example to match flux-get-started
stefanprodan 50785d8
Update Helm get started docs with flux-get-started repo
stefanprodan 8c540b4
Update Flux get started docs with flux-get-started repo
stefanprodan a57430b
Remove git flags from helm-op docs
stefanprodan 60dc374
Remove resolved issues from FAQ
stefanprodan 82569d8
Add the GitHub username replacement after forking
stefanprodan e25f014
Apply suggestions from code review
squaremo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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` | ||
stefanprodan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| `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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it clear that this is a non-working example? Using the weaveworks/ repo will fail, since it won't be writable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a note at the top