diff --git a/deploy/server/tcp-daemonset.yaml b/deploy/server/tcp-daemonset.yaml new file mode 100644 index 0000000..a62bd94 --- /dev/null +++ b/deploy/server/tcp-daemonset.yaml @@ -0,0 +1,32 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: network-controller-server-tcp + namespace: vortex + labels: + k8s-app: network-server-tcp +spec: + selector: + matchLabels: + name: network-controller-server-tcp + template: + metadata: + labels: + name: network-controller-server-tcp + spec: + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule + containers: + - name: network-controller-server-tcp + image: linker/net-controller-server:latest + command: ["./network-controller-server"] + args: ["-tcp=0.0.0.0:50051"] + volumeMounts: + - mountPath: /var/run/docker.sock + name: docker-sock + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock + hostNetwork: true diff --git a/deploy/server/unix-daemonset.yaml b/deploy/server/unix-daemonset.yaml new file mode 100644 index 0000000..9d2c756 --- /dev/null +++ b/deploy/server/unix-daemonset.yaml @@ -0,0 +1,37 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: network-controller-server-unix + namespace: vortex + labels: + k8s-app: network-server-unix +spec: + selector: + matchLabels: + name: network-controller-server-unix + template: + metadata: + labels: + name: network-controller-server-unix + spec: + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule + containers: + - name: network-controller-server-unix + image: linker/net-controller-server:latest + command: ["./network-controller-server"] + args: ["-unix=/tmp/a.sock"] + volumeMounts: + - mountPath: /var/run/docker.sock + name: docker-sock + - mountPath: /tmp/a.sock + name: grpc-sock + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock + - name: grpc-sock + hostPath: + path: /tmp/a.sock + hostNetwork: true