How to enable webhooks if you are on-premises
If your cluster is not accessible on the internet and you can’t open a firewall to allow services like GitHub to access your ingress then you will need to enable webhooks as follows:
setup a webhook tunnel to your laptop find your hook host name:
kubectl get ing -n jx
- copy the hook host name into…
ngrok http http://yourHookHost
- copy the following YAML to a file: helmfiles/jx/jxboot-helmfile-resources-values.yaml
ingress: customHosts: hook: "abcdef1234.ngrok.io"
hook:line in your helmfiles/jx/jxboot-helmfile-resources-values.yaml file to use your personal ngrok domain name of the form
add the jxboot-helmfile-resources-values.yaml file name to the
values:entry in the
helmfiles/jx/helmfile.yamlfile for the
jxgh/jxboot-helmfile-resourceschart like this: (see the last line)
releases: - chart: jxgh/jxboot-helmfile-resources name: jxboot-helmfile-resources values: - ../../versionStream/charts/jx3/jxboot-helmfile-resources/values.yaml.gotmpl - jx-values.yaml - jxboot-helmfile-resources-values.yaml ...
- now git commit the changed files….
git add helmfiles git commit -a -m "fix: add ngrok webhook" git push echo "now lets watch the boot job complete" jx admin log -w
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified June 30, 2021: fix: better docs on setting up ngrok (99e2046161)