From 6bc3f97a36cbde8e00feecd059f88de7a9e911c1 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Wed, 12 Aug 2020 10:41:00 +0200 Subject: [PATCH] docs/faq: How to pass flags to the Kube API Server Closes #325 --- docs/faq/faq.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/faq/faq.md b/docs/faq/faq.md index 0acb20d8..9fa9706c 100644 --- a/docs/faq/faq.md +++ b/docs/faq/faq.md @@ -32,3 +32,10 @@ - What causes this issue: it's a [known issue with dqlite in `k3s`](https://github.com/rancher/k3s/issues/1391) which doesn't allow the initializing server node to go down - What's the solution: Hopefully, this will be solved by the planned [replacement of dqlite with embedded etcd in k3s](https://github.com/rancher/k3s/pull/1770) - Related issues: [#262](https://github.com/rancher/k3d/issues/262) + +## Setting Kubernetes API Server flags (e.g. to enable feature flags) + +- The Problem: Passing a feature flag to the Kubernetes API Server running inside k3s. +- Example: you want to enable the EphemeralContainers feature flag in Kubernetes +- Solution: `#!bash k3d cluster create --k3s-server-arg '--kube-apiserver-arg=feature-gates=EphemeralContainers=true'` + - Note: Be aware of where the flag require dashes (`--`) and where not.