19 lines
450 B
Markdown
19 lines
450 B
Markdown
# Cluster K8s
|
|
|
|
# Init flux agent
|
|
|
|
### Install flux CLI
|
|
curl -s https://fluxcd.io/install.sh | sudo bash
|
|
|
|
### Create flux agent for staging
|
|
|
|
You need to be connected in dev-cluster-k8s by kubeconfig.
|
|
|
|
export GITLAB_TOKEN=<cluster-k8s-flux-token-api>
|
|
flux bootstrap gitlab \
|
|
--hostname=lab.s-web.fr \
|
|
--owner=ldc-web \
|
|
--repository=cluster-k8s \
|
|
--branch=deploy/staging \
|
|
--path=flux/staging \
|
|
--deploy-token-auth
|