-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcalico.yaml
57 lines (56 loc) · 1.35 KB
/
calico.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: v1
data:
calico-ns.yaml: |
apiVersion: v1
kind: Namespace
metadata:
name: tigera-operator
labels:
name: tigera-operator
pod-security.kubernetes.io/enforce: privileged
kind: ConfigMap
metadata:
name: calico-namespace
namespace: default
---
# Create calico-namespace with label pod-security.kubernetes.io/enforce: privileged
apiVersion: config.projectsveltos.io/v1beta1
kind: ClusterProfile
metadata:
name: create-calico-ns
spec:
clusterSelector:
matchLabels:
cni: calico
policyRefs:
- name: calico-namespace
namespace: default
kind: ConfigMap
---
apiVersion: config.projectsveltos.io/v1beta1
kind: ClusterProfile
metadata:
name: deploy-calico
spec:
dependsOn:
- create-calico-ns
syncMode: Continuous
clusterSelector:
matchLabels:
cni: calico
helmCharts:
- repositoryURL: https://projectcalico.docs.tigera.io/charts
repositoryName: projectcalico
chartName: projectcalico/tigera-operator
chartVersion: v3.29.2
releaseName: calico
releaseNamespace: tigera-operator
helmChartAction: Install
values: |
installation:
calicoNetwork:
ipPools:
{{ range $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
- cidr: {{ $cidr }}
encapsulation: VXLAN
{{ end }}