mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-07-12 15:19:17 +00:00
32 lines
545 B
Markdown
32 lines
545 B
Markdown
# Flux demo repository
|
|
|
|
https://github.com/wardviaene/flux-demo
|
|
|
|
# Installation
|
|
|
|
```
|
|
kubectl create ns flux
|
|
export GHUSER="YOURUSER"
|
|
fluxctl install \
|
|
--git-user=${GHUSER} \
|
|
--git-email=${GHUSER}@users.noreply.github.com \
|
|
--git-url=git@github.com:${GHUSER}/flux-demo \
|
|
--git-path=namespaces,workloads \
|
|
--namespace=flux | kubectl apply -f -
|
|
```
|
|
|
|
Check rollout status:
|
|
```
|
|
kubectl -n flux rollout status deployment/flux
|
|
```
|
|
|
|
# Setup SSH key
|
|
```
|
|
fluxctl identity --k8s-fwd-ns flux
|
|
```
|
|
|
|
# Sync repo manually
|
|
```
|
|
fluxctl sync --k8s-fwd-ns flux
|
|
```
|