diff --git a/.taskfiles/ClusterTasks.yml b/.taskfiles/ClusterTasks.yml index fd39f960..d7a78730 100644 --- a/.taskfiles/ClusterTasks.yml +++ b/.taskfiles/ClusterTasks.yml @@ -64,6 +64,11 @@ tasks: - kubectl get certificates {{.CLI_ARGS | default "-A"}} - kubectl get certificaterequests {{.CLI_ARGS | default "-A"}} + ingresses: + desc: List all the helmreleases in your cluster + cmds: + - kubectl get ingress {{.CLI_ARGS | default "-A"}} + resources: desc: Gather common resources in your cluster, useful when asking for support cmds: @@ -73,4 +78,5 @@ tasks: - task: helmrepositories - task: gitrepositories - task: certificates + - task: ingresses - task: pods diff --git a/README.md b/README.md index 5e4952a8..44ee92c1 100644 --- a/README.md +++ b/README.md @@ -364,6 +364,12 @@ task cluster:resources task cluster:certificates ``` +7. View all the ingresses + + ```sh + task cluster:ingresses + ``` + 🏆 **Congratulations** if all goes smooth you'll have a Kubernetes cluster managed by Flux, your Git repository is driving the state of your cluster. ☢️ If you run into problems, you can run `task ansible:nuke` to destroy the k3s cluster and start over. @@ -459,7 +465,7 @@ The benefits of a public repository include: ssh-keygen -t ecdsa -b 521 -C "github-deploy-key" -f ./cluster/github-deploy-key -q -P "" ``` 2. Paste public key in the deploy keys section of your repository settings - 3. Create sops secret in `cluster/base/flux-system/github-deploy-key.sops.yaml` with the contents of: + 3. Create sops secret in `cluster/flux/flux-system/github-deploy-key.sops.yaml` with the contents of: ```yaml # yamllint disable apiVersion: v1 @@ -481,19 +487,19 @@ The benefits of a public repository include: ``` 4. Encrypt secret: ```sh - sops --encrypt --in-place ./cluster/base/flux-system/github-deploy-key.sops.yaml + sops --encrypt --in-place ./cluster/flux/flux-system/github-deploy-key.sops.yaml ``` 5. Apply secret to cluster: ```sh - sops --decrypt cluster/base/flux-system/github-deploy-key.sops.yaml | kubectl apply -f - + sops --decrypt cluster/flux/flux-system/github-deploy-key.sops.yaml | kubectl apply -f - ``` - 6. Update `cluster/base/flux-system/gotk-sync.yaml`: + 6. Update `cluster/flux/flux-system/flux-cluster.yaml`: ```yaml --- apiVersion: source.toolkit.fluxcd.io/v1beta2 kind: GitRepository metadata: - name: flux-installation + name: flux-cluster namespace: flux-system spec: interval: 10m