Try adding an ip pool
This commit is contained in:
File diff suppressed because it is too large
Load Diff
8
infra/cilium/announce.yaml
Normal file
8
infra/cilium/announce.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: cilium.io/v2alpha1
|
||||||
|
kind: CiliumL2AnnouncementPolicy
|
||||||
|
metadata:
|
||||||
|
name: l2-announcement-policy
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
externalIPs: true
|
||||||
|
loadBalancerIPs: true
|
||||||
9
infra/cilium/ip-pool.yaml
Normal file
9
infra/cilium/ip-pool.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: cilium.io/v2alpha1
|
||||||
|
kind: CiliumLoadBalancerIPPool
|
||||||
|
metadata:
|
||||||
|
name: default-pool
|
||||||
|
namespace: kube-system
|
||||||
|
spec:
|
||||||
|
blocks:
|
||||||
|
- start: 192.168.2.10
|
||||||
|
stop: 192.168.2.254
|
||||||
5
infra/cilium/kustomization.yaml
Normal file
5
infra/cilium/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ip-pool.yaml
|
||||||
|
- announce.yaml
|
||||||
@@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ingress-namespace.yaml
|
- ingress-namespace.yaml
|
||||||
|
- cilium
|
||||||
- traefik
|
- traefik
|
||||||
@@ -47,19 +47,29 @@ helm install \
|
|||||||
cilium/cilium \
|
cilium/cilium \
|
||||||
--version 1.15.1 \
|
--version 1.15.1 \
|
||||||
--namespace kube-system \
|
--namespace kube-system \
|
||||||
|
--set rollOutCiliumPods=true \
|
||||||
|
--set localRedirectPolicy=true \
|
||||||
--set ipam.mode=kubernetes \
|
--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.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=securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" \
|
--set cgroup.autoMount.enabled=false \
|
||||||
--set=cgroup.autoMount.enabled=false \
|
--set cgroup.hostRoot=/sys/fs/cgroup \
|
||||||
--set=cgroup.hostRoot=/sys/fs/cgroup \
|
|
||||||
--set hubble.relay.enabled=true \
|
--set hubble.relay.enabled=true \
|
||||||
--set hubble.ui.enabled=true \
|
--set hubble.ui.enabled=true \
|
||||||
--set=k8sServiceHost=localhost \
|
--set kubeProxyReplacement=strict \
|
||||||
--set=k8sServicePort=7445 \
|
--set kubeProxyReplacementHealthzBindAddr=0.0.0.0:10256 \
|
||||||
|
--set socketLB.enabled=true \
|
||||||
|
--set k8sServiceHost=localhost \
|
||||||
|
--set k8sServicePort=7445 \
|
||||||
|
--set autoDirectNodeRoutes=true \
|
||||||
--set operator.replicas=1 \
|
--set operator.replicas=1 \
|
||||||
--set externalIPs.enabled=true \
|
--set externalIPs.enabled=true \
|
||||||
--set enableCiliumEndpointSlice=true
|
--set endpointRoutes.enabled=true \
|
||||||
|
--set bgp.enabled=false \
|
||||||
|
--set bgp.announce.loadbalancerIP=true \
|
||||||
|
--set bgp.announce.podCIDR=false \
|
||||||
|
--set enableCiliumEndpointSlice=true \
|
||||||
|
--set l2announcements.enabled=true
|
||||||
```
|
```
|
||||||
|
|
||||||
You can modify this after install with:
|
You can modify this after install with:
|
||||||
|
|||||||
Reference in New Issue
Block a user