Skip to content

Commit

Permalink
Merge pull request #420 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR -  cicd:enable gh-actions for incluster scenario
  • Loading branch information
UltraInstinct14 authored Oct 21, 2023
2 parents 147ac7b + 0d7da32 commit d6e7a90
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 9 deletions.
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

0 comments on commit d6e7a90

Please sign in to comment.