K8s API access from Container Job #3486
Unanswered
sofiegonzalez
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have run into issues trying to access the k8s api when running jobs as containers in
containerMode: dind
. We have a workflow with a job running in a container thats needs access to the cluster in order to run. I have provided the kubeconfig through a github secret. We also mount the /var/run/secrets/kubernetes.io/serviceaccount folder to the job container so it can access the kube-api-access- secrets. This does not work though, the container is unable to access the cluster.Is using the
containerMode: dind
to access the k8s api feasible? Should I be usingcontainerMode: kubernetes
?Beta Was this translation helpful? Give feedback.
All reactions