I think you're missing a security token was not required in the previous versions, hence you started getting the error only in this updated version of kubernetes.
I think a simpler solution than running a proxy or installing golang on your container. Have a look at the example.
KUBE_TOKEN=$(</var/run/secrets/kubernetes.io/serviceaccount/token)
curl -sSk -H "Authorization: Bearer $KUBE_TOKEN" \
https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1/namespaces/default/pods/$HOSTNAME