@@ -3,5 +3,4 @@ kind: Kustomization
|
||||
resources:
|
||||
- ./capacitor/capacitor.yaml
|
||||
- ./cert-manager/cert-manager.yaml
|
||||
- ./cilium/cilium.yaml
|
||||
- ./podinfo/podinfo.yaml
|
||||
43
kubernetes/infrastructure/cilium/app/release.yaml
Normal file
43
kubernetes/infrastructure/cilium/app/release.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: cilium
|
||||
version: 1.15.5
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
namespace: kube-system
|
||||
name: cilium
|
||||
install:
|
||||
crds: Create
|
||||
upgrade:
|
||||
crds: CreateReplace
|
||||
interval: 1h
|
||||
driftDetection:
|
||||
mode: enabled
|
||||
values:
|
||||
global:
|
||||
encryption:
|
||||
enabled: true
|
||||
nodeEncryption: true
|
||||
|
||||
policyEnforcementMode: default
|
||||
|
||||
operator:
|
||||
replicas: 1
|
||||
|
||||
ipam:
|
||||
mode: cluster-pool
|
||||
operator:
|
||||
clusterPoolIPv4PodCIDRList: [10.42.0.0/16]
|
||||
clusterPoolIPv4MaskSize: 24
|
||||
|
||||
dnsProxy:
|
||||
dnsRejectResponseCode: nameError
|
||||
|
||||
cni:
|
||||
exclusive: false
|
||||
8
kubernetes/infrastructure/cilium/app/repository.yaml
Normal file
8
kubernetes/infrastructure/cilium/app/repository.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 1h
|
||||
url: https://helm.cilium.io
|
||||
@@ -1,11 +1,11 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: cilium-networkpolicies
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 1h
|
||||
path: ./kubernetes/apps/cilium/networkpolicies
|
||||
path: ./kubernetes/infrastructure/cilium
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-kube-dns
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchExpressions:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-kubeapi
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-namespace
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-nodes
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-world-with-lan
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-world
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-namespace
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-ingress
|
||||
namespace: ingress-nginx
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -35,6 +36,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: egress-ingress
|
||||
namespace: ingress-nginx
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-nodes
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,6 +2,7 @@ apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: ingress-world
|
||||
namespace: kube-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./repositories/repositories.yaml
|
||||
- ./cilium/cilium.yaml
|
||||
|
||||
Reference in New Issue
Block a user