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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| var_base=/root/helm
var_app=$var_base/calico
var_version=v3.25.1
mkdir -p $var_app
cd $var_app
helm repo add projectcalico https://docs.tigera.io/calico/charts
helm show values projectcalico/tigera-operator --version $var_version
helm pull projectcalico/tigera-operator --version $var_version
tar xf tigera-operator-$var_version.tgz
cat <<EOF | tee $var_app/tigera-operator/values.yaml
imagePullSecrets: {}
installation:
enabled: true
kubernetesProvider: ""
calicoNetwork:
ipPools:
- cidr: 10.244.0.0/16
apiServer:
enabled: true
certs:
node:
key:
cert:
commonName:
typha:
key:
cert:
commonName:
caBundle:
# Resource requests and limits for the tigera/operator pod.
resources: {}
# Tolerations for the tigera/operator pod.
tolerations:
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
# NodeSelector for the tigera/operator pod.
nodeSelector:
kubernetes.io/os: linux
# Custom annotations for the tigera/operator pod.
podAnnotations: {}
# Custom labels for the tigera/operator pod.
podLabels: {}
# Image and registry configuration for the tigera/operator pod.
tigeraOperator:
image: tigera/operator
version: v1.29.3
registry: quay.io
calicoctl:
image: docker.io/calico/ctl
tag: $var_version
EOF
helm upgrade --install \
--namespace tigera-operator \
--create-namespace \
calico ./tigera-operator
watch kubectl get pods -n tigera-operator
watch kubectl get pods -n calico-system
|