docs: update deploying-cilium.md
Update cilium docs. `kubeProxyReplacement=strict` is deprecated. From Cilium Helm Chart values ```text Valid options are "true", "false", "disabled" (deprecated), "partial" (deprecated), "strict" (deprecated). ref: https://docs.cilium.io/en/stable/network/kubernetes/kubeproxy-free/ kubeProxyReplacement: "false" ``` Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
7046cae43d
commit
e44875106e
2
Makefile
2
Makefile
@ -62,7 +62,7 @@ HELM_VERSION ?= v3.12.3
|
||||
# renovate: datasource=github-releases depName=kubernetes-sigs/cluster-api
|
||||
CLUSTERCTL_VERSION ?= 1.5.0
|
||||
# renovate: datasource=github-releases depName=cilium/cilium-cli
|
||||
CILIUM_CLI_VERSION ?= v0.14.8
|
||||
CILIUM_CLI_VERSION ?= v0.15.7
|
||||
KUBECTL_URL ?= https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/$(OPERATING_SYSTEM)/amd64/kubectl
|
||||
KUBESTR_URL ?= https://github.com/kastenhq/kubestr/releases/download/$(KUBESTR_VERSION)/kubestr_$(subst v,,$(KUBESTR_VERSION))_Linux_amd64.tar.gz
|
||||
HELM_URL ?= https://get.helm.sh/helm-$(HELM_VERSION)-linux-amd64.tar.gz
|
||||
|
@ -245,31 +245,29 @@ function install_and_run_cilium_cni_tests {
|
||||
case "${CILIUM_INSTALL_TYPE:-none}" in
|
||||
strict)
|
||||
${CILIUM_CLI} install \
|
||||
--helm-set=ipam.mode=kubernetes \
|
||||
--helm-set=kubeProxyReplacement=strict \
|
||||
--helm-set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--helm-set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--helm-set=cgroup.autoMount.enabled=false \
|
||||
--helm-set=cgroup.hostRoot=/sys/fs/cgroup \
|
||||
--helm-set=k8sServiceHost=localhost \
|
||||
--helm-set=k8sServicePort=13336 \
|
||||
--wait-duration=10m
|
||||
--set=ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=true \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
--set=cgroup.hostRoot=/sys/fs/cgroup \
|
||||
--set=k8sServiceHost=localhost \
|
||||
--set=k8sServicePort=13336
|
||||
;;
|
||||
*)
|
||||
# explicitly setting kubeProxyReplacement=disabled since by the time cilium cli runs talos
|
||||
# has not yet applied the kube-proxy manifests
|
||||
${CILIUM_CLI} install \
|
||||
--helm-set=ipam.mode=kubernetes \
|
||||
--helm-set=kubeProxyReplacement=disabled \
|
||||
--helm-set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--helm-set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--helm-set=cgroup.autoMount.enabled=false \
|
||||
--helm-set=cgroup.hostRoot=/sys/fs/cgroup \
|
||||
--wait-duration=10m
|
||||
--set=ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=false \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
--set=cgroup.hostRoot=/sys/fs/cgroup
|
||||
;;
|
||||
esac
|
||||
|
||||
${CILIUM_CLI} status
|
||||
${CILIUM_CLI} status --wait --wait-duration=10m
|
||||
|
||||
${KUBECTL} delete ns --ignore-not-found cilium-test
|
||||
|
||||
|
@ -40,7 +40,7 @@ talosctl gen config \
|
||||
--config-patch @patch.yaml
|
||||
```
|
||||
|
||||
Or if you want to deploy Cilium in strict mode without kube-proxy, you also need to disable kube proxy:
|
||||
Or if you want to deploy Cilium without kube-proxy, you also need to disable kube proxy:
|
||||
|
||||
Create a `patch.yaml` file with the following contents:
|
||||
|
||||
@ -87,7 +87,7 @@ cilium install \
|
||||
```bash
|
||||
cilium install \
|
||||
--helm-set=ipam.mode=kubernetes \
|
||||
--helm-set=kubeProxyReplacement=strict \
|
||||
--helm-set=kubeProxyReplacement=true \
|
||||
--helm-set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--helm-set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--helm-set=cgroup.autoMount.enabled=false \
|
||||
@ -129,7 +129,7 @@ helm install \
|
||||
--set=cgroup.hostRoot=/sys/fs/cgroup
|
||||
```
|
||||
|
||||
Or if you want to deploy Cilium in strict mode without kube-proxy, also set some extra paramaters:
|
||||
Or if you want to deploy Cilium without kube-proxy, also set some extra paramaters:
|
||||
|
||||
```bash
|
||||
helm install \
|
||||
@ -138,7 +138,7 @@ helm install \
|
||||
--version 1.14.0 \
|
||||
--namespace kube-system \
|
||||
--set ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=strict \
|
||||
--set=kubeProxyReplacement=true \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
@ -181,7 +181,7 @@ helm template \
|
||||
--version 1.14.0 \
|
||||
--namespace kube-system \
|
||||
--set ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=strict \
|
||||
--set=kubeProxyReplacement=true \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
|
@ -40,7 +40,7 @@ talosctl gen config \
|
||||
--config-patch @patch.yaml
|
||||
```
|
||||
|
||||
Or if you want to deploy Cilium in strict mode without kube-proxy, you also need to disable kube proxy:
|
||||
Or if you want to deploy Cilium without kube-proxy, you also need to disable kube proxy:
|
||||
|
||||
Create a `patch.yaml` file with the following contents:
|
||||
|
||||
@ -87,7 +87,7 @@ cilium install \
|
||||
```bash
|
||||
cilium install \
|
||||
--helm-set=ipam.mode=kubernetes \
|
||||
--helm-set=kubeProxyReplacement=strict \
|
||||
--helm-set=kubeProxyReplacement=true \
|
||||
--helm-set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--helm-set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--helm-set=cgroup.autoMount.enabled=false \
|
||||
@ -129,7 +129,7 @@ helm install \
|
||||
--set=cgroup.hostRoot=/sys/fs/cgroup
|
||||
```
|
||||
|
||||
Or if you want to deploy Cilium in strict mode without kube-proxy, also set some extra paramaters:
|
||||
Or if you want to deploy Cilium without kube-proxy, also set some extra paramaters:
|
||||
|
||||
```bash
|
||||
helm install \
|
||||
@ -138,7 +138,7 @@ helm install \
|
||||
--version 1.14.0 \
|
||||
--namespace kube-system \
|
||||
--set ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=strict \
|
||||
--set=kubeProxyReplacement=true \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
@ -181,7 +181,7 @@ helm template \
|
||||
--version 1.14.0 \
|
||||
--namespace kube-system \
|
||||
--set ipam.mode=kubernetes \
|
||||
--set=kubeProxyReplacement=strict \
|
||||
--set=kubeProxyReplacement=true \
|
||||
--set=securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" \
|
||||
--set=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
||||
--set=cgroup.autoMount.enabled=false \
|
||||
|
Loading…
x
Reference in New Issue
Block a user