You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a cluster with extra_env specified for the kube-api service. This works fine with RKE 1.5.8 but fails with RKE 1.5.9. I think the following commit might be involved : 2e767c8
RKE version: 1.5.9
Docker version: (docker version,docker info preferred)
hi @tmsdce, thank you for reporting the issue. I can confirm that this is a bug.
Root Cause
This bug occurs in RKE v1.5.9.
If extra_env is set for kube-api as below in the cluster config file, the Env list in the container configuration for the kube-apiserver container will contain an empty string (""), which causes the creation to fail with the error invalid environment variable: returned from Docker.
services:
kube-api:
extra_env:
- TEST_VAR=test
Workaround
If your cluster is stuck in the failed status, remove the extra_env for kube-api from the cluster config and run rke up again can bring the cluster back to active.
If you need to set the extra_env for kube-api, please use RKE v1.5.8 for now until the bug is fixed in the coming release.
Description
I'm trying to create a cluster with extra_env specified for the kube-api service. This works fine with RKE 1.5.8 but fails with RKE 1.5.9. I think the following commit might be involved : 2e767c8
RKE version: 1.5.9
Docker version: (
docker version
,docker info
preferred)Operating system and kernel: (
cat /etc/os-release
,uname -r
preferred)Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VirtualBox but also fails on vSphere (the RKE terraform provider is used in this case)
cluster.yml file:
Steps to Reproduce:
rke up
and wait for it to crash when trying to start thekube-apiserver
container (see logs below)Results:
The text was updated successfully, but these errors were encountered: