# 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 ```
复制到github上deployment key
来源:oschina
链接:https://my.oschina.net/u/4383691/blog/4654185