Skip to content
Snippets Groups Projects
Verified Commit 4614b06e authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add cilium config

parent cf1ade25
Branches
No related tags found
No related merge requests found
# Cilium
## BGP
Cilium has an integration with Metallb.
https://docs.cilium.io/en/v1.10/gettingstarted/bgp/
We just need to provide a configmap to it.
`kubectl create -f bgp-configmap.yaml`
## Chart
```bash
helm repo add cilium https://helm.cilium.io/
helm repo update
helm install cilium cilium/cilium \
--version 1.10.5 \
--namespace kube-system \
--values values.yaml
```
## Upgrade
Review the changelog and if everything is fine just change the version tag and upgrade helm.
## Test it
There is an example deployment and loadbalancer in the `example` folder.
apiVersion: v1
kind: ConfigMap
metadata:
name: bgp-config
namespace: kube-system
data:
config.yaml: |
peers:
- peer-address: 192.168.99.254
peer-asn: 64512
my-asn: 64512
address-pools:
- name: default
protocol: bgp
addresses:
- 192.168.44.0/24
apiVersion: v1
kind: Service
metadata:
name: test-lb
spec:
type: LoadBalancer
loadBalancerIP: 152.66.192.34
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
svc: test-lb
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
selector:
matchLabels:
svc: test-lb
template:
metadata:
labels:
svc: test-lb
spec:
containers:
- name: web
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
resources:
requests: {}
limits:
cpu: '50m'
memory: '100M'
kubeProxyReplacement: strict
k8sServiceHost: 127.0.0.1
k8sServicePort: 6443
# devices: Don't specify it because cilium will use eth0 and eth1
bgp:
enabled: true
announce:
loadbalancerIP: true
ipam:
mode: "kubernetes"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment