Today I tried to see the PODs from a Kubernetes namespace and this error started to happen:
serializer for text/html; charset=UTF-8; doesn't exist
When I execute the follow command:
.\kubectl.exe -n hml get pod
What is the cause for this error?
I forgot to connect to the Azure VPN to access the kubernetes environment. I just needed to do this.
After connect to the VPN, the error was gone. Sadly the error does not describe very well the cause.
As I was behind a company proxy, I think without the VPN the proxy itself changed the Content-Type
request header to text/html
on the connection, making the Kubernetes show this error because it was expecting another Content-Type
.