Skip to content

Commit

Permalink
Merge pull request #81 from backguynn/main
Browse files Browse the repository at this point in the history
merge kube-loxilb & loxilb-peer manifest file
  • Loading branch information
backguynn authored Dec 6, 2023
2 parents b2c16ce + cade653 commit fa21174
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions manifest/in-cluster/kube-loxilb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,66 @@ spec:
privileged: true
capabilities:
add: ["NET_ADMIN", "NET_RAW"]
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: loxilb-peer
namespace: kube-system
spec:
selector:
matchLabels:
app: loxilb-peer-app
template:
metadata:
name: loxilb-peer
labels:
app: loxilb-peer-app
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "node-role.kubernetes.io/master"
operator: DoesNotExist
- key: "node-role.kubernetes.io/control-plane"
operator: DoesNotExist
containers:
- name: loxilb-peer-app
image: "ghcr.io/loxilb-io/loxilb:latest"
command: [ "/root/loxilb-io/loxilb/loxilb", "--peer" ]
ports:
- containerPort: 11111
- containerPort: 1791
- containerPort: 50051
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
---
apiVersion: v1
kind: Service
metadata:
name: loxilb-peer-service
namespace: kube-system
spec:
clusterIP: None
selector:
app: loxilb-peer-app
ports:
- name: loxilb-peer-app
port: 11111
targetPort: 11111
protocol: TCP
- name: loxilb-peer-bgp
port: 1791
targetPort: 1791
protocol: TCP
- name: loxilb-peer-gobgp
port: 50051
targetPort: 50051
protocol: TCP

0 comments on commit fa21174

Please sign in to comment.