Created
December 2, 2021 05:45
-
-
Save saiyam1814/aaf5c78d1c17dfff706d28dcc5669d61 to your computer and use it in GitHub Desktop.
Flux CNCFMinutes
This file contains hidden or 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
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