diff --git a/manifest/in-cluster/kube-loxilb.yaml b/manifest/in-cluster/kube-loxilb.yaml index 52a0d27..1d027fd 100644 --- a/manifest/in-cluster/kube-loxilb.yaml +++ b/manifest/in-cluster/kube-loxilb.yaml @@ -128,66 +128,3 @@ 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 diff --git a/manifest/in-cluster/loxilb-peer.yaml b/manifest/in-cluster/loxilb-peer.yaml new file mode 100644 index 0000000..11095e4 --- /dev/null +++ b/manifest/in-cluster/loxilb-peer.yaml @@ -0,0 +1,63 @@ +--- +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