File tree Expand file tree Collapse file tree 1 file changed +15
-29
lines changed
Expand file tree Collapse file tree 1 file changed +15
-29
lines changed Original file line number Diff line number Diff line change @@ -64,52 +64,38 @@ jobs:
6464
6565 kubectl wait --for=condition=Ready nodes --all --timeout=120s
6666
67- echo "[*] Creating pods with large images..."
67+ echo "[*] Creating Kind cluster..."
68+ kind create cluster --name $CLUSTER_NAME --config $KIND_CONFIG
69+
70+ kubectl wait --for=condition=Ready nodes --all --timeout=120s
71+
72+ echo "[*] Creating pod ..."
6873 kubectl apply -f - <<EOF
6974 apiVersion: v1
7075 kind: Pod
7176 metadata:
72- name: large-pod-1
73- spec:
74- containers:
75- - name: tensorflow
76- image: tensorflow/tensorflow:latest
77- command: ["sleep", "300"]
78- resources:
79- requests:
80- memory: "2Gi"
81- cpu: "2"
82- limits:
83- memory: "4Gi"
84- cpu: "4"
85- ---
86- apiVersion: v1
87- kind: Pod
88- metadata:
89- name: large-pod-2
77+ name: nginx
9078 spec:
9179 containers:
92- - name: pytorch
93- image: pytorch/pytorch:latest
94- command: ["sleep", "300"]
80+ - name: nginx
81+ image: nginx:latest
9582 resources:
9683 requests:
97- memory: "2Gi "
98- cpu: "2 "
84+ memory: "256Mi "
85+ cpu: "100m "
9986 limits:
100- memory: "4Gi "
101- cpu: "4 "
87+ memory: "256Mi "
88+ cpu: "500m "
10289 EOF
10390
10491 echo "[*] Waiting for pods to be ready..."
105- kubectl wait --for=condition=Ready pod/large-pod-1 --timeout=600s
106- kubectl wait --for=condition=Ready pod/large-pod-2 --timeout=600s
92+ kubectl wait --for=condition=Ready pod/nginx --timeout=300s
10793
10894 echo "[*] Pods running, doing test workload..."
10995 sleep 60
11096
11197 echo "[*] Deleting pods..."
112- kubectl delete pod large-pod-1 large-pod-2
98+ kubectl delete pod nginx
11399
114100 echo "[*] Deleting Kind cluster..."
115101 kind delete cluster --name $CLUSTER_NAME
You can’t perform that action at this time.
0 commit comments