fix: use the name flux-webhook for ingress

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-01-01 20:03:21 -05:00
1 parent 17a3fc3586
commit b0413fffe0
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -413,7 +413,7 @@ To enable Renovate on your repository, click the 'Configure' button over at thei
Flux is pull-based by design meaning it will periodically check your git repository for changes, using a webhook you can enable Flux to update your cluster on `git push`. In order to configure Github to send `push` events from your repository to the Flux webhook receiver you will need two things:
1. Webhook URL - Your webhook receiver will be deployed on `https://flux-receiver.${BOOTSTRAP_CLOUDFLARE_DOMAIN}/hook/:hookId`. In order to find out your hook id you can run the following command:
1. Webhook URL - Your webhook receiver will be deployed on `https://flux-webhook.${BOOTSTRAP_CLOUDFLARE_DOMAIN}/hook/:hookId`. In order to find out your hook id you can run the following command:
```sh
kubectl -n flux-system get receiver/github-receiver --kubeconfig=./kubeconfig
@@ -424,7 +424,7 @@ Flux is pull-based by design meaning it will periodically check your git reposit
So if my domain was `onedr0p.com` the full url would look like this:
```text
https://flux-receiver.onedr0p.com/hook/12ebd1e363c641dc3c2e430ecf3cee2b3c7a5ac9e1234506f6f5f3ce1230e123
https://flux-webhook.onedr0p.com/hook/12ebd1e363c641dc3c2e430ecf3cee2b3c7a5ac9e1234506f6f5f3ce1230e123
```
2. Webhook secret - Your webhook secret can be found by decrypting the `secret.sops.yaml` using the following command:
@@ -2,7 +2,7 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: webhook-receiver
name: flux-webhook
namespace: flux-system
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
@@ -12,7 +12,7 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: &host "flux-receiver.${SECRET_DOMAIN}"
- host: &host "flux-webhook.${SECRET_DOMAIN}"
http:
paths:
- path: /hook/
@@ -25,4 +25,4 @@ spec:
tls:
- hosts:
- *host
secretName: flux-receiver-tls
secretName: flux-webhook-tls