File tree Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ install:
2222 # ./scripts/install-prometheus-operator.sh
2323 ./scripts/deploy-operator-crd-scaling.sh
2424
25+ # Bootstrap Fedora Machine Locally
26+ bootstrap-docker-fedora-local :
27+ cd config/vagrant/scripts; ./bootstrap-docker.sh
28+
29+ bootstrap-golang-fedora-local :
30+ cd config/vagrant/scripts; ./bootstrap-golang.sh
31+
32+ bootstrap-cluster-fedora-local :
33+ cd config/vagrant/scripts; ./bootstrap-cluster.sh
34+
2535# creates a k8s cluster instance
2636rebuild-cluster :
2737 ./scripts/deploy-k8s-cluster.sh
Original file line number Diff line number Diff line change @@ -28,9 +28,15 @@ Vagrant.configure('2') do |config|
2828 # Triggers reload to setup docker rootless permissions.
2929 k8shost . vm . provision :reload
3030
31- # Configures kubernetes.
31+ # Download KIND and Kubectl/OC binaries
3232 k8shost . vm . provision 'shell' ,
3333 path : 'scripts/bootstrap-cluster.sh' ,
3434 privileged : false
35+
36+ # Build the KIND cluster and install the resources
37+ k8shost . vm . provision 'shell' ,
38+ inline : 'cd partner; make rebuild-cluster'
39+ k8shost . vm . provision 'shell' ,
40+ inline : 'cd partner; make install'
3541 end
3642end
Original file line number Diff line number Diff line change @@ -18,8 +18,3 @@ curl -Lo oc.tar.gz "${OC_DL_URL}"
1818tar -xvf oc.tar.gz
1919chmod +x oc kubectl
2020sudo cp oc kubectl /usr/bin/.
21-
22- # create cluster
23- cd partner || exit 1
24- make rebuild-cluster
25- make install
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ kind delete cluster
55# Kind base with kindnetcni and ipv4/ipv6
66kind create cluster --config=config/k8s-cluster/config.yaml
77
8- # deploy calico (not needed but more feature rich - for future use)
9- oc create -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.5/manifests/calico.yaml
8+ # Download the calico YAML and change the image source to quay
9+ curl https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml |
10+ sed s/docker.io/quay.io/g > temp-calico.yaml
1011
12+ # Deploy calico (not needed but more feature rich - for future use)
13+ oc create -f temp-calico.yaml
Original file line number Diff line number Diff line change 3030
3131 # Install macvlan and other default plugins
3232 echo " ## install CNIs"
33+ sed ' s/alpine/quay.io\/jitesoft\/alpine:latest/g' temp/multus-cni/e2e/cni-install.yml -i
3334 kubectl create -f temp/multus-cni/e2e/cni-install.yml
3435 kubectl -n kube-system wait --for=condition=ready -l name=" cni-plugins" pod --timeout=" $TNF_DEPLOYMENT_TIMEOUT "
3536
You can’t perform that action at this time.
0 commit comments