K3d: [QUESTION] feature gates

Created on 11 Aug 2020  路  5Comments  路  Source: rancher/k3d

Sorry for channelling this question here - I coudn't identify a more apt channel.

How the heck do I enable feature gates with k3d? Trying a day already... :smile_cat:

Doesn't work:

$ k3d cluster create --api-port 6550 -p 8081:80@loadbalancer --agents 2 \
   -v /tmp/k3d/kubelet/pods:/var/lib/kubelet/pods:shared \
   --k3s-server-arg '--kubelet-arg=feature-gates="EphemeralContainers=true"' \
   --k3s-agent-arg '--kubelet-arg=feature-gates="EphemeralContainers=true

If this warrants a FAQ entry, then this is a (docs) feature request.

All 5 comments

Eureka, the simple things (without "):

$ k3d cluster create --api-port 6550 -p 8081:80@loadbalancer --agents 2 \
   -v /tmp/k3d/kubelet/pods:/var/lib/kubelet/pods:shared \
   --k3s-server-arg '--kubelet-arg=feature-gates=EphemeralContainers=true' \
   --k3s-agent-arg '--kubelet-arg=feature-gates=EphemeralContainers=true'

Double down on this 隆Eureka! (--kube-apiserver-arg):

$ k3d cluster create --api-port 6550 -p 8081:80@loadbalancer --agents 2 \
   -v /tmp/k3d/kubelet/pods:/var/lib/kubelet/pods:shared \
   --k3s-server-arg '--kube-apiserver-arg=feature-gates=EphemeralContainers=true'

Hi @blaggacao , thanks for opening this issue!
Now that's some flag/settings hell there :grin:
So it seems like you solved it yourself, right? :+1:

So it seems like you solved it yourself, right?

Confirm, If you don't want to transform this opportunity into an explanatory FAQ entry, please close.

@blaggacao , I added an FAQ entry on how to pass flags through to the API Server :+1:
Thanks for this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjshrjndrn picture rjshrjndrn  路  5Comments

rafael-brandao picture rafael-brandao  路  4Comments

tuxtof picture tuxtof  路  5Comments

JohnnyCrazy picture JohnnyCrazy  路  3Comments

stephenpope picture stephenpope  路  4Comments