aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/pods
diff options
context:
space:
mode:
Diffstat (limited to 'resources/templates/kubernetes/pods')
-rw-r--r--resources/templates/kubernetes/pods/contiv-sfc-controller.yaml22
-rw-r--r--resources/templates/kubernetes/pods/contiv-vnf.yaml45
-rw-r--r--resources/templates/kubernetes/pods/contiv-vswitch.yaml52
-rw-r--r--resources/templates/kubernetes/pods/etcdv3.yaml25
-rw-r--r--resources/templates/kubernetes/pods/kafka.yaml22
5 files changed, 166 insertions, 0 deletions
diff --git a/resources/templates/kubernetes/pods/contiv-sfc-controller.yaml b/resources/templates/kubernetes/pods/contiv-sfc-controller.yaml
new file mode 100644
index 0000000000..4fa946dcf3
--- /dev/null
+++ b/resources/templates/kubernetes/pods/contiv-sfc-controller.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: sfc-controller
+ namespace: csit
+spec:
+ containers:
+ - name: "sfc-controller"
+ image: ligato/prod_sfc_controller
+ imagePullPolicy: IfNotPresent
+ command:
+ - /bin/sfc-controller
+ - -etcdv3-config=/opt/sfc-controller/dev/etcd.conf
+ - -sfc-config=/opt/sfc-controller/dev/sfc.conf
+ - -vnf-config=/opt/sfc-controller/dev/vnf.conf
+ volumeMounts:
+ - name: controller-config
+ mountPath: /opt/sfc-controller/dev
+ volumes:
+ - name: controller-config
+ configMap:
+ name: sfc-controller-cfg \ No newline at end of file
diff --git a/resources/templates/kubernetes/pods/contiv-vnf.yaml b/resources/templates/kubernetes/pods/contiv-vnf.yaml
new file mode 100644
index 0000000000..5ef89b5716
--- /dev/null
+++ b/resources/templates/kubernetes/pods/contiv-vnf.yaml
@@ -0,0 +1,45 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: $$VNF$$-vpp
+ namespace: csit
+spec:
+ containers:
+ - name: $$VNF$$
+ image: prod_vpp_agent
+ imagePullPolicy: IfNotPresent
+ securityContext:
+ privileged: true
+ ports:
+ - containerPort: 5002
+ - containerPort: 9191
+ readinessProbe:
+ httpGet:
+ path: /readiness
+ port: 9191
+ periodSeconds: 1
+ livenessProbe:
+ httpGet:
+ path: /liveness
+ port: 9191
+ initialDelaySeconds: 15
+ env:
+ - name: MICROSERVICE_LABEL
+ value: $$VNF$$
+ volumeMounts:
+ - name: vpp-config
+ mountPath: /etc/vpp
+ - name: agent-config
+ mountPath: /opt/vpp-agent/dev
+ - name: memif-sockets
+ mountPath: /tmp
+ volumes:
+ - name: vpp-config
+ configMap:
+ name: $$VNF$$-vpp-cfg
+ - name: agent-config
+ configMap:
+ name: vnf-agent-cfg
+ - name: memif-sockets
+ hostPath:
+ path: /tmp \ No newline at end of file
diff --git a/resources/templates/kubernetes/pods/contiv-vswitch.yaml b/resources/templates/kubernetes/pods/contiv-vswitch.yaml
new file mode 100644
index 0000000000..ed0f449e2d
--- /dev/null
+++ b/resources/templates/kubernetes/pods/contiv-vswitch.yaml
@@ -0,0 +1,52 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: vswitch-vpp
+ namespace: csit
+spec:
+ hostNetwork: true
+ containers:
+ - name: "vswitch"
+ image: prod_vpp_agent
+ imagePullPolicy: IfNotPresent
+ securityContext:
+ privileged: true
+ ports:
+ - containerPort: 5002
+ - containerPort: 9191
+ readinessProbe:
+ httpGet:
+ path: /readiness
+ port: 9191
+ periodSeconds: 1
+ livenessProbe:
+ httpGet:
+ path: /liveness
+ port: 9191
+ periodSeconds: 1
+ initialDelaySeconds: 15
+ env:
+ - name: MICROSERVICE_LABEL
+ value: vswitch
+ volumeMounts:
+ - name: vpp-config
+ mountPath: /etc/vpp
+ - name: agent-config
+ mountPath: /opt/vpp-agent/dev
+ - name: memif-sockets
+ mountPath: /tmp
+ - name: device-uio
+ mountPath: /dev
+ volumes:
+ - name: vpp-config
+ configMap:
+ name: vswitch-vpp-cfg
+ - name: agent-config
+ configMap:
+ name: vswitch-agent-cfg
+ - name: memif-sockets
+ hostPath:
+ path: /tmp
+ - name: device-uio
+ hostPath:
+ path: /dev
diff --git a/resources/templates/kubernetes/pods/etcdv3.yaml b/resources/templates/kubernetes/pods/etcdv3.yaml
new file mode 100644
index 0000000000..f5f6b32435
--- /dev/null
+++ b/resources/templates/kubernetes/pods/etcdv3.yaml
@@ -0,0 +1,25 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: etcdv3
+ namespace: csit
+spec:
+ hostNetwork: true
+ containers:
+ - image: quay.io/coreos/etcd:v3.0.16
+ name: etcdv3
+ command:
+ - /usr/local/bin/etcd
+ - --advertise-client-urls
+ - http://0.0.0.0:22379
+ - --listen-client-urls
+ - http://0.0.0.0:22379
+ - --listen-peer-urls
+ - http://0.0.0.0:22380
+ ports:
+ - containerPort: 22379
+ hostPort: 22379
+ name: serverport
+ env:
+ - name: ETCDCTL_API
+ value: "3"
diff --git a/resources/templates/kubernetes/pods/kafka.yaml b/resources/templates/kubernetes/pods/kafka.yaml
new file mode 100644
index 0000000000..0bb8f1e5d7
--- /dev/null
+++ b/resources/templates/kubernetes/pods/kafka.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: kafka
+ namespace: csit
+spec:
+ hostNetwork: true
+ containers:
+ - image: spotify/kafka
+ name: kafka
+ ports:
+ - containerPort: 2181
+ hostPort: 2181
+ name: zookeeper
+ - containerPort: 9092
+ hostPort: 9092
+ name: kafka
+ env:
+ - name: ADVERTISED_HOST
+ value: "172.17.0.1"
+ - name: ADVERTISED_PORT
+ value: "9092"