Initial HomeK8s tree matching lab GitOps layout.
Storage and Gateway apply with kubectl -k until Forgejo+Flux.
This commit is contained in:
commit
f9189482e7
24 changed files with 454 additions and 0 deletions
12
infrastructure/networking/cilium/kustomization.yaml
Normal file
12
infrastructure/networking/cilium/kustomization.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: kube-system
|
||||
resources:
|
||||
- repository.yaml
|
||||
- release.yaml
|
||||
configMapGenerator:
|
||||
- name: cilium-values
|
||||
files:
|
||||
- values.yaml=values.yaml
|
||||
configurations:
|
||||
- kustomizeconfig.yaml
|
||||
6
infrastructure/networking/cilium/kustomizeconfig.yaml
Normal file
6
infrastructure/networking/cilium/kustomizeconfig.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
nameReference:
|
||||
- kind: ConfigMap
|
||||
version: v1
|
||||
fieldSpecs:
|
||||
- path: spec/valuesFrom/name
|
||||
kind: HelmRelease
|
||||
19
infrastructure/networking/cilium/release.yaml
Normal file
19
infrastructure/networking/cilium/release.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
releaseName: cilium
|
||||
interval: 15m
|
||||
chart:
|
||||
spec:
|
||||
chart: cilium
|
||||
version: "1.18.13"
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: cilium-values
|
||||
8
infrastructure/networking/cilium/repository.yaml
Normal file
8
infrastructure/networking/cilium/repository.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: cilium
|
||||
namespace: kube-system
|
||||
spec:
|
||||
interval: 24h
|
||||
url: https://helm.cilium.io/
|
||||
30
infrastructure/networking/cilium/values.yaml
Normal file
30
infrastructure/networking/cilium/values.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
kubeProxyReplacement: true
|
||||
k8sServiceHost: "10.10.0.2"
|
||||
k8sServicePort: "6443"
|
||||
|
||||
l7Proxy: true
|
||||
|
||||
gatewayAPI:
|
||||
enabled: true
|
||||
hostNetwork:
|
||||
enabled: true
|
||||
nodes:
|
||||
matchLabels:
|
||||
dedicated: network
|
||||
|
||||
envoy:
|
||||
enabled: true
|
||||
|
||||
operator:
|
||||
replicas: 1
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: siriussec
|
||||
|
||||
ipam:
|
||||
mode: cluster-pool
|
||||
operator:
|
||||
clusterPoolIPv4PodCIDRList:
|
||||
- 10.244.0.0/16
|
||||
|
||||
routingMode: tunnel
|
||||
tunnelProtocol: vxlan
|
||||
16
infrastructure/networking/gateway/gateway.yaml
Normal file
16
infrastructure/networking/gateway/gateway.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: public
|
||||
namespace: gateway-system
|
||||
labels:
|
||||
dedicated: network
|
||||
spec:
|
||||
gatewayClassName: cilium
|
||||
listeners:
|
||||
- name: http
|
||||
protocol: HTTP
|
||||
port: 8080
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
5
infrastructure/networking/gateway/kustomization.yaml
Normal file
5
infrastructure/networking/gateway/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- gateway.yaml
|
||||
4
infrastructure/networking/gateway/namespace.yaml
Normal file
4
infrastructure/networking/gateway/namespace.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: gateway-system
|
||||
Loading…
Reference in a new issue