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

[AWS Fargate] Fetching in-cluster config fails from farget container. #185

Open
ssudake21 opened this Issue May 3, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@ssudake21

ssudake21 commented May 3, 2018


Environment summary

Provider - Farget

Version - Latest 18adde2

K8s Master Info - Cluster created with Kops on AWS

Install Method (e.g. Helm Chart, ) Manually. Referred steps in https://aws.amazon.com/blogs/opensource/aws-fargate-virtual-kubelet/

Issue Details

I am trying to run a pod which uses in cluster configuration to create k8s go client. All of details are mentioned in pod spec, but looks like aws farget provider totally ignores that service account is mentioned in pod run. It just parses pod spec.containers

I get following error in pod log,

2018/05/03 01:50:11 Error making fetcher: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined

Comes from https://github.com/kubernetes-client/go/blob/78199cc914eead8a64d1eb11061bf4a031b63a1e/kubernetes/config/incluster_config.go#L45

Repro Steps

Try to run kubernetes client-go example,
https://github.com/kubernetes/client-go/tree/master/examples/in-cluster-client-configuration

@rbitia rbitia added the aws fargate label May 3, 2018

@ofiliz ofiliz assigned d-nishi and unassigned ofiliz May 16, 2018

@d-nishi

This comment has been minimized.

d-nishi commented May 18, 2018

@ssudake21 will respond as soon as I have a clear path forward here!

@ssudake21

This comment has been minimized.

ssudake21 commented May 18, 2018

Sure @d-nishi . Thanks for acknowledgement.

@rbitia rbitia added the bug label May 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment