File tree Expand file tree Collapse file tree 8 files changed +21
-52
lines changed
.github/actions/start-k8s-cluster Expand file tree Collapse file tree 8 files changed +21
-52
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,19 @@ description: Creates and configures a k8s cluster for all things TNF-related
33inputs :
44 working_directory :
55 default : .
6- kind_version :
7- default : v0.14.0
86 oc_kcm_timeout :
97 default : 5m
108
119runs :
1210 using : ' composite'
1311 steps :
14- - name : Download cluster bootstrap executable
15- run : |
16- curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/${{ inputs.kind_version }}/kind-linux-amd64
17- working-directory : ${{ inputs.working_directory }}
18- shell : bash
19-
20- - name : Install cluster bootstrap executable
21- run : chmod +x kind; sudo cp kind /usr/bin/kind
12+ - name : Run Bootstrap Cluster
13+ run : make bootstrap-cluster-fedora-local
2214 working-directory : ${{ inputs.working_directory }}
2315 shell : bash
2416
25- - name : Configure docker
26- run : make new -docker-config
17+ - name : Run Bootstrap Cluster
18+ run : make bootstrap -docker-fedora-local
2719 working-directory : ${{ inputs.working_directory }}
2820 shell : bash
2921
Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ bootstrap-cluster-fedora-local:
3333 cd config/vagrant/scripts; ./bootstrap-cluster.sh
3434
3535# creates a k8s cluster instance
36- rebuild-cluster :
36+ rebuild-cluster : delete-cluster
3737 ./scripts/deploy-k8s-cluster.sh
3838
39+ delete-cluster :
40+ ./scripts/delete-k8s-cluster.sh
41+
3942# launch Vagrant env
4043vagrant-build :
4144 mkdir -p config/vagrant/kubeconfig
@@ -64,10 +67,6 @@ vagrant-recreate:
6467 cd config/vagrant; vagrant destroy -f
6568 make vagrant-build
6669
67- # create a new docker configuration
68- new-docker-config :
69- ./scripts/configure-docker.sh
70-
7170# deploys the partner pods
7271install-partner-pods :
7372 ./scripts/deploy-debug-ds.sh
@@ -89,16 +88,16 @@ install-crds:
8988install-litmus :
9089 ./scripts/install-litmus-operator.sh
9190
92- install-prometheus :
91+ install-prometheus :
9392 ./scripts/install-prometheus-operator.sh
9493
95- delete-prometheus :
94+ delete-prometheus :
9695 ./scripts/delete-prometheus-operator.sh
9796
98- install-istio :
97+ install-istio :
9998 ./scripts/install-istio.sh
10099
101- delete-istio :
100+ delete-istio :
102101 ./scripts/delete-istio.sh
103102
104103# delete deployment pods
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ sudo systemctl restart docker
136136
137137Download and install Kubernetes In Docker (Kind):
138138``` shell-script
139- curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.14 .0/kind-linux-amd64
139+ curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.17 .0/kind-linux-amd64
140140```
141141
142142Configure a cluster with 4 worker nodes and one master node ( dual stack ):
Original file line number Diff line number Diff line change 11kind : Cluster
22apiVersion : kind.x-k8s.io/v1alpha4
3- featureGates :
4- LocalStorageCapacityIsolation : false
53networking :
64 ipFamily : dual
75 disableDefaultCNI : true
86 apiServerAddress : " 0.0.0.0"
97 apiServerPort : 6443
108nodes :
119 - role : control-plane
12- image : kindest/node:v1.24.4 @sha256:ba6a8a1bc35139cc0947a9269a6db577cf7a6ba37cab8088fd04142546dc0c21
10+ image : kindest/node:v1.25.3 @sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
1311 - role : worker
14- image : kindest/node:v1.24.4 @sha256:ba6a8a1bc35139cc0947a9269a6db577cf7a6ba37cab8088fd04142546dc0c21
12+ image : kindest/node:v1.25.3 @sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
1513 - role : worker
16- image : kindest/node:v1.24.4 @sha256:ba6a8a1bc35139cc0947a9269a6db577cf7a6ba37cab8088fd04142546dc0c21
14+ image : kindest/node:v1.25.3 @sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
1715 - role : worker
18- image : kindest/node:v1.24.4 @sha256:ba6a8a1bc35139cc0947a9269a6db577cf7a6ba37cab8088fd04142546dc0c21
16+ image : kindest/node:v1.25.3 @sha256:f1de3b0670462f43280114eccceab8bf1b9576d2afe0582f8f74529da6fd0365
Original file line number Diff line number Diff line change 22# shellcheck disable=SC2207
33
44# Download and install Kubernetes In Docker (Kind):
5- sudo curl -Lo /usr/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.14 .0/kind-linux-amd64
5+ sudo curl -Lo /usr/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.17 .0/kind-linux-amd64
66sudo chmod +x /usr/bin/kind
77
88# download the latest openshift client at a certain release level
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -x
3+ kind delete cluster
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -x
3- kind delete cluster
43
54# Kind base with kindnetcni and ipv4/ipv6
65kind create cluster --config=config/k8s-cluster/config.yaml
You can’t perform that action at this time.
0 commit comments