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 Dashboard and Traefik Dashboard #52

Open
eitschalot opened this issue Nov 22, 2020 · 2 comments
Open

Kubernetes Dashboard and Traefik Dashboard #52

eitschalot opened this issue Nov 22, 2020 · 2 comments

Comments

@eitschalot
Copy link

Does there exist an easy method to expose the Kubernetes Dashboard and Traefik Dashboard securely to the WAN?

@jamct
Copy link
Collaborator

jamct commented Jan 25, 2021

It's a good idea. I will prepare an update during my next update session. A release candidate may be ready by end of January!

@simpsonetti
Copy link

simpsonetti commented Feb 4, 2021

Well, to Kubernetes there is a Dashboard, but for Traefik i don't know...
For me its secure, because i ssh it.
Here in short for Kubernetes:
install:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml

creating user:
cat <<EOF | kubectl apply -f - apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kubernetes-dashboard EOF

Maybe this doesn't, i have:

cat <<EOF | kubectl apply -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard
EOF

To get the token:
kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath="{.secrets[0].name}") -o go-template="{{.data.token | base64decode}}"

start:
kubectl proxy

another ssh with -L to your server.
Than in Browser:
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

Maybe this helps. For me this works.
If someone has it for Traefik....

PS: sorry for the history, i'm new here.

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

No branches or pull requests

3 participants