-
Notifications
You must be signed in to change notification settings - Fork 123
55 lines (55 loc) · 1.65 KB
/
k0s-weave.yml
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
55
name: K0s-Weave-Sanity-CI
on:
schedule:
# Runs "At 11:00 UTC every day-of-week"
- cron: '0 11 * * *'
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'k0s-weave'
jobs:
build:
name: k0s-weave-sanity
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- run: |
echo "KUBECONFIG=/var/lib/k0s/pki/admin.conf" >> $GITHUB_ENV
- run: sudo ip addr add 192.169.20.59/32 dev lo
- run: sudo apt-get -y install lksctp-tools
- run: sudo swapoff -a
- run: |
sudo mkdir -p /opt/cni/bin/
git clone https://github.com/containernetworking/plugins.git
cd plugins
./build_linux.sh
sudo cp -f bin/* /opt/cni/bin/
cd -
- run: sudo curl -sSLf https://get.k0s.sh | sudo sh
- run: sudo k0s install controller --enable-worker -c cicd/k0s-weave/k0s.yaml
- run: sudo k0s start
- run: |
sleep 120
sudo k0s kubectl apply -f https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml
- run: |
sleep 60
sudo k0s kubectl get pods -A
- run: |
sleep 10
sudo k0s kubectl taint nodes --all node-role.kubernetes.io/master:NoSchedule-
sleep 60
sudo k0s kubectl get nodes
sudo k0s kubectl get pods -A
- run: |
cd cicd/k0s-weave/
./config.sh
./validation.sh
./rmconfig.sh
cd -