pipe version: aws-eks-kubectl-run:1.1.1
My Bitbucket Pipeline
- pipe: atlassian/aws-eks-kubectl-run:1.1.1
KUBECTL_COMMAND: 'set image deployment/app-frontend app-frontend=$IMAGE_NAME'
Added new context arn:aws:eks:[region]:[aws_id]:cluster/[cluster_name] to /root/.kube/config
Successfully updated the kube config.
error: You must be logged in to the server (Unauthorized)
kubectl set image deployment/app-frontend app-frontend=IMAGE_NAME failed.
can anyone please guide me on how to authenticate using this pipe? as the documentation doesn't say much aside from filling in those required variables.
after much research finally found the solution. Apparently in AWS EKS, by default only the cluster creator IAM can interact with the eks cluster through kubectl.
From AWS EKS Documentation
When you create an Amazon EKS cluster, the IAM entity user or role, such as a federated user that creates the cluster, is automatically granted
system:masterspermissions in the cluster's RBAC configuration. To grant additional AWS users or roles the ability to interact with your cluster, you must edit the
aws-authConfigMap within Kubernetes.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events