-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.69 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on:
pull_request:
push:
branches:
- main
- releases/*
jobs:
qubo-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare Node
run: |
docker volume create worker1-containerd
docker volume create control1-containerd
- name: Create kind cluster QuboCI
uses: helm/kind-action@v1.2.0
with:
cluster_name: "qubo-ci"
config: kind/config.yaml
- name: Prepare Cluster
run: |
kubectl cluster-info
kubectl get storageclass standard
kubectl get nodes -oyaml | grep 'test:' && echo "detected node label 'qubo=test'"
ls $HOME/.ssh/id_rsa || ssh-keygen -t rsa -N "" -f $HOME/.ssh/id_rsa
kubectl create secret generic kargo-sshpubkey-kc2user --from-file=key1=$HOME/.ssh/id_rsa.pub
- name: Test Cluster
run: |
kubectl create ns kubevirt
kubectl apply -nkubevirt -f https://github.com/kubevirt/kubevirt/releases/download/v0.47.1/kubevirt-operator.yaml
kubectl apply -nkubevirt -f https://github.com/kubevirt/kubevirt/releases/download/v0.47.1/kubevirt-cr.yaml
sleep 4
kubectl create configmap kubevirt-config -n kubevirt --from-literal debug.useEmulation=true
sleep 90
kubectl get po -A
echo
kubectl apply -f preview/ubuntu.yaml
sleep 120
kubectl get po -A
sleep 90
kubectl get po -A
echo
kubectl get events -A
kubectl describe vm ubuntu
sleep 270
ssh -o StrictHostKeyChecking=no -p30950 kc2user@127.0.0.1 screenfetch || ssh -o StrictHostKeyChecking=no -p30950 kc2user@127.0.0.1 whoami