orange-cloudfoundry / k3s-wrapper-boshrelease

k3s wrapper scripts bosh release
Apache License 2.0
2 stars 2 forks source link

k3s-server /var/vcap/store/kubeconfig.yml generation must be synced with k3s.yaml file generation #15

Open poblin-orange opened 11 months ago

poblin-orange commented 11 months ago

The k3s process generates a k3s.yaml kubeconfig file. This file is targeted to 127.0.0.1

The k3s bosh release generates a kubeconfig.yml, replacing 127.0.0.1 ip with

A first start (empty k3s server /var/vcap/store), the bosh post-start might occur BEFORE k3s process has generated the k3s.yaml, resulting in a silent failure and an empty kubeconfig.yml