-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EKS #3702
Comments
what is the error ? |
try |
the config works fine for me, i'm using the cluster already for some things the error in samson is just "can't connect to api server" or something like that here is an example config, as you can see it uses exec and uses the aws cli to fetch a token apiVersion: v1
clusters:
- cluster:
certificate-authority-data: xxxx
server: https://xxxx.sk1.eu-west-1.eks.amazonaws.com
name: arn:aws:eks:eu-west-1:123:cluster/foo
contexts:
- context:
cluster: arn:aws:eks:eu-west-1:123:cluster/foo
user: arn:aws:eks:eu-west-1:123:cluster/foo
name: foo
current-context: foo
kind: Config
preferences: {}
users:
- name: arn:aws:eks:eu-west-1:123:cluster/foo
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- --region
- eu-west-1
- eks
- get-token
- --cluster-name
- foo
command: aws
env: null |
yeah samson does not support that syntax ... |
Ye I figured it wouldn't just work as is. Just wanted to make sure. A quick workaround is to put a proxy in front of EKS that does the auth and have samson call the proxy. I have that working, but it's not a long term solution. Will see if I try to make a PR for this. Thx for the input! |
@thrawny Would you mind explainng what you ended up doing? I'm in a similar position to yours. |
You setup a proxy that calls eks and then samson calls the proxy. In my specific case I made a simple golang app. It would just proxy requests to eks including auth headers and so on. Don't expose the proxy externally! When I made it I was hoping it would be a temporary thing but as many things go, it ended up being temporarily permanent. |
@thrawny That sounds neat. Is that something you would be willing to open source? It sounds like something that has potential other use-cases as well 🚀 |
Documentation about the kubernetes plugin mentions connecting to EKS clusters. I naively tried using the kubeconfig you get using EKS and adding to samson, but I just got an error.
So my question is just; How to solve getting samson to talk to an EKS cluster?
The text was updated successfully, but these errors were encountered: