Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - cicd:enable gh-actions for incluster scenario #420

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/k3s-flannel-incluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: K3s-Flannel-InCluster-Sanity-CI
on:
schedule:
# Runs "At 17:00 UTC every day-of-week"
- cron: '0 17 * * *'
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'k3s-flannel-incluster'
jobs:
build:
name: k3s-flannel-incluster-sanity
runs-on: self-hosted
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Run the test
run: |
cd cicd/k3s-flannel-incluster
./config.sh
./validation.sh
cd -

- name: Clean test-bed
if: success() || failure()
run: |
cd cicd/k3s-flannel-incluster || true
./rmconfig.sh
cd -
9 changes: 5 additions & 4 deletions cicd/k3s-calico-incluster/kube-loxilb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ metadata:
name: kube-loxilb
namespace: kube-system
labels:
app: loxilb
app: kube-loxilb-app
spec:
replicas: 1
selector:
matchLabels:
app: loxilb
app: kube-loxilb-app
template:
metadata:
labels:
app: loxilb
app: kube-loxilb-app
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand All @@ -113,11 +113,12 @@ spec:
args:
#- --loxiURL=http://192.168.80.10:11111
- --externalCIDR=123.123.123.1/24
#- --externalSecondaryCIDRs=124.124.124.1/24,125.125.125.1/24
- --setBGP=64512
- --listenBGPPort=1791
- --setRoles=0.0.0.0
#- --monitor
#- --setBGP
#- --extBGPPeers=50.50.50.1:65101,51.51.51.1:65102
#- --setLBMode=1
#- --config=/opt/loxilb/agent/kube-loxilb.conf
resources:
Expand Down
7 changes: 3 additions & 4 deletions cicd/k3s-flannel-incluster/kube-loxilb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ metadata:
name: kube-loxilb
namespace: kube-system
labels:
app: loxilb
app: kube-loxilb-app
spec:
replicas: 1
selector:
matchLabels:
app: loxilb
app: kube-loxilb-app
template:
metadata:
labels:
app: loxilb
app: kube-loxilb-app
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down Expand Up @@ -117,7 +117,6 @@ spec:
- --setRoles=0.0.0.0
- --extBGPPeers=192.168.90.9:64511
#- --monitor
#- --setBGP
#- --setLBMode=1
#- --config=/opt/loxilb/agent/kube-loxilb.conf
resources:
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-flannel-incluster/loxilb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: loxilb-app
image: "ghcr.io/loxilb-io/loxilb:latest"
imagePullPolicy: Always
command: [ "/root/loxilb-io/loxilb/loxilb", "--bgp", "--egr-hooks", "--blacklist=cni[0-9a-z]|veth.|flannel." ]
command: [ "/root/loxilb-io/loxilb/loxilb", "--bgp", "--egr-hooks", "--blacklist=cni[0-9a-z]|veth.|flannel.|cali.|tunl.|vxlan[.]calico" ]
ports:
- containerPort: 11111
- containerPort: 179
Expand Down
Loading