ci: k8s: Ensure k3s is deploy with --write-kubeconfig-mode=644

Otherwise the /etc/rancher/k3s/k3s.yaml is not readable by other users
than root.

As --write-config-mode is being passed, and that's an option that has to
be passed to the `server`, -s is also added to the command line.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-09-07 13:02:47 +02:00
parent 028a97e0d5
commit ad45ab5d33

View File

@ -141,7 +141,7 @@ function deploy_kata() {
}
function deploy_k3s() {
curl -sfL https://get.k3s.io | sh -
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
# This is an arbitrary value that came up from local tests
sleep 240s