Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Created December 2, 2021 05:45
Show Gist options
  • Save saiyam1814/aaf5c78d1c17dfff706d28dcc5669d61 to your computer and use it in GitHub Desktop.
Save saiyam1814/aaf5c78d1c17dfff706d28dcc5669d61 to your computer and use it in GitHub Desktop.
Flux CNCFMinutes
flux bootstrap github \
--owner=$GITHUB_USER \
--repository=cncfminutes \
--branch=main \
--path=./clusters/my-cluster
git clone https://github.com/$GITHUB_USER/cncfminutes\
cd cncfminutes
flux create source git podinfo \
--url=https://github.com/stefanprodan/podinfo \
--branch=master \
--interval=30s \
--export > ./clusters/my-cluster/podinfo-source.yaml
cat clusters/my-cluster/podinfo-source.yaml
git add -A && git commit -m "Add podinfo GitRepository"\
git push
flux create kustomization podinfo \
--target-namespace=default \
--source=podinfo \
--path="./kustomize" \
--prune=true \
--interval=5m \
--export > ./clusters/my-cluster/podinfo-kustomization.yaml
cat clusters/my-cluster/podinfo-kustomization.yaml
git add -A && git commit -m "Add podinfo Kustomization"\
git push
flux get kustomizations
vi clusters/my-cluster/podinfo-kustomization.yaml
git add -A && git commit -m "Increase podinfo minimum replicas"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment