chore(cilium): Move Cilium configuration to kustomize-bases

This commit is contained in:
Peter 2025-12-14 13:57:30 +01:00
parent 1420189990
commit 471e15389e
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
12 changed files with 75 additions and 110 deletions

View file

@ -0,0 +1,27 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: internal
spec:
gatewayClassName: cilium
addresses:
- type: IPAddress
value: placeholder
listeners:
- allowedRoutes:
namespaces:
from: All
name: http
port: 80
protocol: HTTP
- allowedRoutes:
namespaces:
from: All
name: https
port: 443
protocol: HTTPS
tls:
certificateRefs:
- kind: Secret
name: placeholder

View file

@ -0,0 +1,16 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: http-filter-redirect
spec:
parentRefs:
- name: public
sectionName: http
- name: internal
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https

View file

@ -0,0 +1,17 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- l2-advertisement.yaml
- gateways.yaml
- httproute.yaml
helmCharts:
- name: cilium
repo: https://helm.cilium.io
namespace: kube-system
releaseName: cilium
version: 1.18.3
valuesFile: values.yaml

View file

@ -0,0 +1,7 @@
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumL2AnnouncementPolicy
metadata:
name: l2adv
spec:
loadBalancerIPs: true

View file

@ -0,0 +1,41 @@
k8sServiceHost: localhost
k8sServicePort: 7445
kubeProxyReplacement: true
cgroup:
hostRoot: /sys/fs/cgroup
autoMount:
enabled: false
securityContext:
capabilities:
ciliumAgent:
- CHOWN
- KILL
- NET_ADMIN
- NET_RAW
- IPC_LOCK
- SYS_ADMIN
- SYS_RESOURCE
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
cleanCiliumState:
- NET_ADMIN
- SYS_ADMIN
- SYS_RESOURCE
operator:
replicas: 1
hubble:
relay:
enabled: true
ui:
enabled: true
gatewayAPI:
enabled: true
enableAlpn: true
enableAppProtocol: true