vmware-archive/kubewatch

Proxy support for reaching to ms-teams webhook url

Opened this issue · 1 comments

Hello folks,
I am using helm chart to setup kubewatch. I see, in my environment, external urls are prohibited and can run only behind proxy.
I am not able to figure out the way to reach to ms-team webhook url from my kubewatch pod, to send trigers. ( I have to apply proxy settings for this, but no idea how ?) Please suggest....

I had to do this on my side with the Helm deployment. Create the following file

kubewatch-values.yaml

extraEnvVars:
  - name: http_proxy
    value: http://PROXY_HERE/
  - name: https_proxy
    value: http://PROXY_HERE/
  - name: no_proxy
    value: "127.0.0,$IP_OF_THE_INTERNAL_K8S_API_ENDPOINT"

Then you add it to your helm creation -f kubewatch-values.yaml

I don't really know how we can template the IP_OF_THE_INTERNAL_K8S_API_ENDPOINT values since it might change.

Using http_proxy and https_proxy means all requests are proxied, which includes requests from kubewatch to the K8s API to get the pod events.