Skip to content
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

Kubernetes Ingress backend: can't find token and ca.crt #484

Closed
mapolone opened this issue Jun 28, 2016 · 3 comments
Closed

Kubernetes Ingress backend: can't find token and ca.crt #484

mapolone opened this issue Jun 28, 2016 · 3 comments

Comments

@mapolone
Copy link

mapolone commented Jun 28, 2016

I'm trying Traefik on top of CoreOS 1010.3.0 and Kubernetes 1.2.4 (image pulled from Docker public registry).
Config file traefik.toml has been modified as follows (in Kubernetes section):

[kubernetes]
endpoint = "http://192.168.1.5:8080"
namespaces = ["default"]

Created a new self-signed certificate and set ca.crt in default folder:
/var/run/secrets/kubernetes.io/serviceaccount/ca.crt

As well for the token:
/var/run/secrets/kubernetes.io/serviceaccount/token

Permissions have been temporary set to 666 on both files.
This happens when using insecure and secure port (in kube-apiserver startup parameters).

Should they have a specific owner/group?

@mapolone mapolone changed the title Kubernetes Ingress backend can't find token and ca.crt Kubernetes Ingress backend: can't find token and ca.crt Jun 28, 2016
@errm
Copy link
Contributor

errm commented Jun 29, 2016

You shouldn't have to manually create the ca.crt and token, the default service account (i.e. those files) should be injected into the container by kubernetes, assuming you are running traefik in a kubernetes pod somehow.

@discordianfish
Copy link
Contributor

Same as #486 and from what I can tell more a kubernetes and more a support question.
@mapolone If you still have issues, try asking on the kubernetes mailinglist, stack overflow or slack. See here for details: http://kubernetes.io/docs/troubleshooting/ Those folk can probably better help you.

@mapolone
Copy link
Author

mapolone commented Dec 3, 2016

@discordianfish and @errm thank you! It's working now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants