This is the multi-page printable view of this section.
Click here to print.
Return to the regular view of this page.
Links
Set up port forwarding
ssh -L 6443:127.0.0.1:6443 -N flux.alwaldend.com
Run flux CLI
bazel run //infra/flux/cl:flux
Show flux status
bazel run infra/flux/cl:flux -- get all -A
Run bootstrap
bazel run //infra/flux/cl:flux.bootstrap
Run flux operator
bazel run //infra/flux/cl:op
Show oidc info
bazel run //infra/flux/cl:oidc
Renew certificate
bazel run //infra/flux/cl:cmctl -- renew traefik-gateway-websecure-tls -n traefik
Update secrets
- Generate secret id and the token:
SECRET_ID=$(bazel run //infra/flux/cl:vault.secret_id | jq -r .data.secret_id)
TOKEN=$(echo "${SECRET_ID}" | bazel run //infra/flux/cl:vault.ops_token | jq -r .auth.client_token)
echo "Secret id: ${SECRET_ID}, Token: ${TOKEN}"
- Patch secret-id in ./cl/cert-manager/issuer-approle.yaml
- Patch token in projects/kustomization/flux-repo/flux-sops-secret.yaml
- Encrypt:
bazel run //infra/flux/cl:sops.encrypt infra/flux/cl/cert-manager/issuer-approle.yaml
bazel run //infra/flux/cl:sops.encrypt projects/kustomization/flux-repo/flux-sops-secret.yaml
bazel run //infra/flux/cl:sops.encrypt projects/kustomization/flux-repo/flux-git-src-secret.yaml