set cilium as CNI
This commit is contained in:
+6
-1
@@ -186,7 +186,12 @@ EOF
|
|||||||
### casa - control Plane - k3s setup
|
### casa - control Plane - k3s setup
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.36.1+k3s1 sh -
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.36.1+k3s1 \
|
||||||
|
INSTALL_K3S_EXEC="\
|
||||||
|
--flannel-backend=none \
|
||||||
|
--disable-network-policy \
|
||||||
|
--disable=servicelb" \
|
||||||
|
sh -
|
||||||
```
|
```
|
||||||
|
|
||||||
**Taint NoSchedule on master node:**
|
**Taint NoSchedule on master node:**
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# Cilium
|
||||||
|
|
||||||
|
<https://github.com/cilium/charts>
|
||||||
|
<https://docs.cilium.io/en/stable/helm-reference/#helm-reference>
|
||||||
|
|
||||||
|
## setup and deploy
|
||||||
|
|
||||||
|
Using flux for reconciliation.
|
||||||
|
|
||||||
|
**Restart:**
|
||||||
|
|
||||||
|
Occasionally, Cilium's eBPF maps for L2 announcements can get "stale" after a configuration change (like switching from Local to Cluster). Perform a rolling restart of the Cilium pods to clear the state:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
```
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
POD_NAME=$(kubectl get pod -l 'app.kubernetes.io/name'=cilium-agent -n cilium -o jsonpath='{.items[0].metadata.name}')
|
||||||
|
kubectl exec -n cilium ${POD_NAME} -c cilium-agent -- cilium-dbg status
|
||||||
|
```
|
||||||
|
|
||||||
|
**list load balancers ip pools:**
|
||||||
|
*Required after changes*
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get CiliumLoadBalancerIPPool -A
|
||||||
|
```
|
||||||
@@ -8,8 +8,17 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: cilium
|
chart: cilium
|
||||||
version: 1.18.2
|
version: 1.19.5
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: cilium
|
name: cilium
|
||||||
interval: 40h
|
interval: 40h
|
||||||
|
values:
|
||||||
|
kubeProxyReplacement: true
|
||||||
|
installCRDs: true
|
||||||
|
routingMode: native
|
||||||
|
enableIPv4Masquerade: false # using bpf.masquerade: true
|
||||||
|
autoDirectNodeRoutes: true
|
||||||
|
bpf:
|
||||||
|
masquerade: true
|
||||||
|
hostLegacyRouting: false # force use of bfp
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: casa
|
name: casa
|
||||||
namespace: flux-system
|
namespace: casa-limbosolutions-com
|
||||||
path: ./services/cilium/deploy/app
|
path: ./services/cilium/deploy/app
|
||||||
prune: true
|
prune: true
|
||||||
|
|||||||
Reference in New Issue
Block a user