eks error : certificate-authority-data and certificate-authority are both specified for kubernetes eks error : certificate-authority-data and certificate-authority are both specified for kubernetes kubernetes kubernetes

eks error : certificate-authority-data and certificate-authority are both specified for kubernetes


The kubectl certificate authority option is for the client itself. What you want is set up the ca inside the container. There's a couple of ways I think you can setup (not limited):

  1. Create a ConfigMap (or k8s secret) with the ca content and mount on your pod, and have your application reference it as the ca config (your docker registry)

  2. Bake the config directly into the container in some /etc/registry directory for example and have your application reference it. The more recommended way is 1. due to the fact that it's generally not advisable to hard-cde cred stuff in your container image.