Repo for FDK-infrastructure
Make sure you are running latest version of Flux (https://fluxcd.io/flux/installation/)
export GITHUB_TOKEN=<github token>
flux bootstrap github \
--owner=Informasjonsforvaltning \
--repository=fdk-infra \
--branch=main \
--path=./clusters/<cluster>
Secrets must be created manually.
htpasswd -c /dev/stdout <user> | xargs -i kubectl create secret -n monitoring generic ingress-basic-auth --from-literal=auth={}
htpasswd -c /dev/stdout <user> | xargs -i kubectl create secret -n logging generic ingress-basic-auth --from-literal=auth={}
kubectl create secret -n flux-system generic kube-prometheus-stack-alertmanager --from-literal=slack-apiurl=<slack api url>
kubectl create secret -n flux-system generic kube-prometheus-stack-grafana --from-literal=password=<password>
objstore.yml
type: GCS
config:
bucket: "<bucket name>"
service_account: |-
{
"type": "service_account",
...
}
kubectl create secret -n monitoring generic thanos-objstore --from-file=objstore.yml=objstore.yml