Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

FluxCD notification error sending to Microsoft Teams

Writer Olivia Zamora

I am trying to configure FluxCD in Kubernetes to send notifications to Microsfot Teams for reconciliation events.

I have followed the FluxCD "Setup Notifications" instructions. Everything is deployed as expected.

enter image description here

I am not receiving any alerts in Teams as expected when I edit a config (e.g. pod replicaCount) and run "flux reconcile ...". This is the error I am seeing in the Notification Controller

enter image description here

enter image description here

enter image description here

Here is the secret with the Microsoft Teams channel URL

enter image description here

Does anyone have any ideas to please share with me today. Thank you

6

1 Answer

So, firstly, I had not created an incoming webhook in Microsoft Teams UI:

Secondly, I asked a question to the Flux maintainers as @Nalum suggested and there was a follow-on issue with encoding the Teams URL correctly. I had a trailing newline character which caused the URL to be invalid as reported by the Provider. I was reciving the following error

enter image description here

To resolve this I had to use the -n switch on the echo command when base64'ing the Teams URL for the Secret in Kubernetes.

echo -n '<teams url>' | base64

My final Kubernetes config was as follows:enter image description here

enter image description here

enter image description here

A full breakdown of the investigation can be seen here:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.