K3s-Flannel-Sanity-CI-Ubuntu-22 #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: K3s-Flannel-Sanity-CI-Ubuntu-22 | |
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: 'k3s-flannel-ubuntu-22' | |
jobs: | |
build: | |
name: k3s-flannel-sanity-ubuntu-22 | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: | | |
echo "KUBECONFIG=--kubeconfig=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- run: curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --disable traefik --disable servicelb --disable-cloud-controller --kubelet-arg cloud-provider=external" K3S_KUBECONFIG_MODE="644" sh - | |
- run: | | |
sleep 10 | |
kubectl "${{ env.KUBECONFIG }}" taint nodes --all node.cloudprovider.kubernetes.io/uninitialized=false:NoSchedule- | |
sleep 60 | |
kubectl "${{ env.KUBECONFIG }}" get nodes | |
kubectl "${{ env.KUBECONFIG }}" get pods -A | |
wget https://github.com/loxilb-io/loxi-ccm/raw/master/manifests/loxi-ccm-k3s.yaml | |
kubectl "${{ env.KUBECONFIG }}" apply -f ./loxi-ccm-k3s.yaml | |
sleep 60 | |
kubectl "${{ env.KUBECONFIG }}" get pods -A | |
- run: | | |
cd cicd/k3s-flannel/ | |
./config.sh "${{ env.KUBECONFIG }}" | |
./validation.sh "${{ env.KUBECONFIG }}" | |
./rmconfig.sh "${{ env.KUBECONFIG }}" | |
cd - |