Skip to content

Commit a6a65be

Browse files
authored
Split out the calico deployment (#250)
1 parent b13e62b commit a6a65be

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ bootstrap-cluster-fedora-local:
3535
# creates a k8s cluster instance
3636
rebuild-cluster: delete-cluster
3737
./scripts/deploy-k8s-cluster.sh
38+
./scripts/deploy-calico.sh
3839

3940
delete-cluster:
4041
./scripts/delete-k8s-cluster.sh

scripts/delete-calico.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
4+
# Download the calico YAML and change the image source to quay
5+
curl https://raw.githubusercontent.com/projectcalico/calico/v3.25.1/manifests/calico.yaml |
6+
sed s/docker.io/quay.io/g >temp-calico.yaml
7+
8+
# Delete calico (not needed but more feature rich - for future use)
9+
oc delete -f temp-calico.yaml
10+
rm temp-calico.yaml

scripts/deploy-calico.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
4+
# Download the calico YAML and change the image source to quay
5+
curl https://raw.githubusercontent.com/projectcalico/calico/v3.25.1/manifests/calico.yaml |
6+
sed s/docker.io/quay.io/g >temp-calico.yaml
7+
8+
# Deploy calico
9+
oc create -f temp-calico.yaml
10+
rm temp-calico.yaml

scripts/deploy-k8s-cluster.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,3 @@ set -x
33

44
# Kind base with kindnetcni and ipv4/ipv6
55
kind create cluster --config=config/k8s-cluster/config.yaml
6-
7-
# Download the calico YAML and change the image source to quay
8-
curl https://raw.githubusercontent.com/projectcalico/calico/v3.25.1/manifests/calico.yaml |
9-
sed s/docker.io/quay.io/g >temp-calico.yaml
10-
11-
# Deploy calico (not needed but more feature rich - for future use)
12-
oc create -f temp-calico.yaml

0 commit comments

Comments
 (0)