teddy-ferdinand / vagrant-k3s-cluster

Déploiement d'une infrastructure K3S avec Vagrant
Apache License 2.0
21 stars 18 forks source link

How to connect via the load-balancer? #1

Open joCoutu opened 3 years ago

joCoutu commented 3 years ago
# Get password from master config file
PASSWORD=$(vagrant ssh kubemaster1 -c "sudo grep password /etc/rancher/k3s/k3s.yaml" ...

# k3s.yaml (have no password)
users:
- name: default
  user:
    client-certificate-data:...
   client-key-data:...

# direct connection
vagrant ssh kubemaster1
sudo cat /etc/rancher/k3s/k3s.yaml # copy
vim ~/.kube/k3s.yml # paste
export KUBECONFIG=~/.kube/k3s1.yml
kubectl cluster-info

# How to connect via the load-balancer?
teddy-ferdinand commented 2 years ago

Sorry, didn't notice your message :o

I saw that K3S change his configuration to allow only key access instead of password. Traefik wasn't able to manage mTLS configuration until few month ago, I'll try to update this repository with more recent configuration :)