Skip to content

Commit 471bb7c

Browse files
committed
wip: cleanup calico install
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1 parent c2bffee commit 471bb7c

3 files changed

Lines changed: 4 additions & 15 deletions

File tree

Makefile.d/calico/deploy/daemonset.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ spec:
4747
# It can be deleted if this is a fresh installation, or if you have already
4848
# upgraded to use calico-ipam.
4949
- name: upgrade-ipam
50-
image: ghcr.io/converged-computing/usernetes:calico-cni
51-
# image: quay.io/calico/cni:v3.31.3
50+
image: quay.io/calico/cni:v3.31.3
5251
imagePullPolicy: IfNotPresent
5352
command: ["/opt/cni/bin/calico-ipam", "-upgrade"]
5453
envFrom:
@@ -76,8 +75,7 @@ spec:
7675
# This container installs the CNI binaries
7776
# and CNI network config file on each node.
7877
- name: install-cni
79-
image: ghcr.io/converged-computing/usernetes:calico-cni
80-
# image: quay.io/calico/cni:v3.31.3
78+
image: quay.io/calico/cni:v3.31.3
8179
imagePullPolicy: IfNotPresent
8280
command: ["/opt/cni/bin/install"]
8381
envFrom:
@@ -121,7 +119,6 @@ spec:
121119
# networking to allow communication with the API Server. Calico-node initialization is executed
122120
# in best effort fashion, i.e. no failure for errors, to not disrupt pod creation in iptables mode.
123121
- name: "ebpf-bootstrap"
124-
# image: ghcr.io/converged-computing/usernetes:calico-node
125122
image: quay.io/calico/node:v3.31.3
126123
imagePullPolicy: IfNotPresent
127124
command: ["calico-node", "-init", "-best-effort"]
@@ -148,7 +145,7 @@ spec:
148145
# container programs network policy and routes on each
149146
# host.
150147
- name: calico-node
151-
image: ghcr.io/converged-computing/usernetes:calico-node
148+
image: quay.io/calico/node:v3.31.3
152149
imagePullPolicy: IfNotPresent
153150
envFrom:
154151
- configMapRef:

Makefile.d/calico/deploy/deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ spec:
3939
priorityClassName: system-cluster-critical
4040
containers:
4141
- name: calico-kube-controllers
42-
image: ghcr.io/converged-computing/usernetes:calico-kube-controllers
43-
# image: quay.io/calico/kube-controllers:v3.31.3
42+
image: quay.io/calico/kube-controllers:v3.31.3
4443
imagePullPolicy: IfNotPresent
4544
env:
4645
# Choose which controllers to run.

Makefile.d/calico/install-calico.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ kubectl delete deployments.apps -n kube-system calico-kube-controllers
1313
kubectl delete cm -n kube-system calico-config
1414
kubectl delete daemonsets.apps -n kube-system calico-node
1515

16-
# These are for our corona images
17-
yq eval -i '(.spec.template.spec.initContainers[] | select(.name == "upgrade-ipam") | .image) = "ghcr.io/converged-computing/usernetes:calico-cni"' ./Makefile.d/calico/deploy/daemonset.yaml
18-
yq eval -i '(.spec.template.spec.initContainers[] | select(.name == "install-cni") | .image) = "ghcr.io/converged-computing/usernetes:calico-cni"' ./Makefile.d/calico/deploy/daemonset.yaml
19-
yq eval -i '(.spec.template.spec.initContainers[] | select(.name == "ebpf-bootstrap") | .image) = "ghcr.io/converged-computing/usernetes:calico-node"' ./Makefile.d/calico/deploy/daemonset.yaml
20-
yq eval -i '(.spec.template.spec.containers[] | select(.name == "calico-node") | .image) = "ghcr.io/converged-computing/usernetes:calico-node"' ./Makefile.d/calico/deploy/daemonset.yaml
21-
yq eval -i '(.spec.template.spec.containers[] | select(.name == "calico-kube-controllers") | .image) = "ghcr.io/converged-computing/usernetes:calico-kube-controllers"' ./Makefile.d/calico/deploy/deployment.yaml
22-
2316
# Update components with our version
2417
# Note that IP autodetect has to initially be there so the vxlan.calico shows up
2518
kubectl apply -f ./Makefile.d/calico/deploy

0 commit comments

Comments
 (0)