We are using EKS for running our K8s cluster. At any start of an aws-node pod, there is an ERROR on the logs. Though the pod networking seems to work. Do we have to add any parameter in order to get rid of this ERROR in the logs?
=====Starting installing AWS-CNI =========
=====Starting amazon-k8s-agent ===========
ERROR: logging before flag.Parse: W1217 10:37:25.707719 13 client_config.go:533] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
Thanks!
@dhoeld The Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work. message is a standard message from the Kubernetes Go client. It indicates that the client will use environment variables set via kubelet to determine the Kubernetes API server URL; I've never seen it not work 馃槃.
The ERROR: logging before flag.Parse: message comes from the glog logging library that client-go uses.
The documentation explictly says
flag.Parse must be called before any logging is done
A solution would be to add an explicit call to flag.Parse() to main.go.
This also doesn't work on 1.1 and there hasn't been a new release. Can we get a new release for this?
i still see this issue even on amazon-k8s-cni:v1.3.3
This patch https://github.com/aws/amazon-vpc-cni-k8s/pull/293 should fix the issue, but it looks like v1.3.3 did not include it.