Add calico

This commit is contained in:
SeanOMik 2023-04-04 00:47:05 -04:00
parent 06ed73297e
commit 834cfabeeb
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
7 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: calico
namespace: calico-system
spec:
interval: 5m
chart:
spec:
chart: calico
version: 3.25.x
sourceRef:
kind: HelmRepository
name: calico-charts
namespace: flux-system

View File

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: calico-charts
namespace: flux-system
spec:
interval: 1m
url: https://docs.tigera.io/calico/charts

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./helm-repo.yaml
- ./calico-helm.yaml
- ./tigera-helm.yaml

View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: calico-system
---
apiVersion: v1
kind: Namespace
metadata:
name: tigera-operator

View File

@ -0,0 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: tigera-operator
namespace: tigera-operator
spec:
interval: 5m
chart:
spec:
chart: calico
version: 3.25.x
sourceRef:
kind: HelmRepository
name: tigera-operator
namespace: flux-system

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./traefik
- ./calico
- ./metallb

View File

@ -5,7 +5,7 @@ metadata:
namespace: metallb-system
spec:
addresses:
- 192.168.87.10-192.168.87.28
- 192.168.87.10-192.168.87.28
autoAssign: true
---
apiVersion: metallb.io/v1beta1
@ -13,3 +13,6 @@ kind: L2Advertisement
metadata:
name: default
namespace: metallb-system
spec:
ipaddresspools:
- static-ip-range