Add calico
This commit is contained in:
parent
06ed73297e
commit
834cfabeeb
7 changed files with 59 additions and 1 deletions
cluster/core/networking
15
cluster/core/networking/calico/calico-helm.yaml
Normal file
15
cluster/core/networking/calico/calico-helm.yaml
Normal 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
|
8
cluster/core/networking/calico/helm-repo.yaml
Normal file
8
cluster/core/networking/calico/helm-repo.yaml
Normal 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
|
7
cluster/core/networking/calico/kustomization.yaml
Normal file
7
cluster/core/networking/calico/kustomization.yaml
Normal 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
|
9
cluster/core/networking/calico/namespace.yaml
Normal file
9
cluster/core/networking/calico/namespace.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: calico-system
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: tigera-operator
|
15
cluster/core/networking/calico/tigera-helm.yaml
Normal file
15
cluster/core/networking/calico/tigera-helm.yaml
Normal 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
|
|
@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- ./traefik
|
||||
- ./calico
|
||||
- ./metallb
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue