summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/msb/Chart.yaml4
-rw-r--r--kubernetes/msb/templates/all-services.yaml59
-rw-r--r--kubernetes/msb/templates/msb-consul-deployment.yaml29
-rw-r--r--kubernetes/msb/templates/msb-discovery-deployment.yaml34
-rw-r--r--kubernetes/msb/templates/msb-eag-deployment.yaml38
-rw-r--r--kubernetes/msb/templates/msb-iag-deployment.yaml38
-rw-r--r--kubernetes/msb/values.yaml20
7 files changed, 222 insertions, 0 deletions
diff --git a/kubernetes/msb/Chart.yaml b/kubernetes/msb/Chart.yaml
new file mode 100644
index 0000000000..7e2ba04fd0
--- /dev/null
+++ b/kubernetes/msb/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: msb
+version: 0.1.0
diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml
new file mode 100644
index 0000000000..b67808d2da
--- /dev/null
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -0,0 +1,59 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: msb-consul
+ labels:
+ app: msb-consul
+spec:
+ clusterIP: "{{ .Values.consulClusterIP }}"
+ ports:
+ - port: {{ .Values.consulPort }}
+ nodePort: {{ .Values.consulNodePort }}
+ selector:
+ app: msb-consul
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: msb-discovery
+ labels:
+ app: msb-discovery
+spec:
+ clusterIP: "{{ .Values.discoveryClusterIP }}"
+ ports:
+ - port: {{ .Values.discoveryPort }}
+ nodePort: {{ .Values.discoveryNodePort }}
+ selector:
+ app: msb-discovery
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: msb-iag
+ labels:
+ app: msb-iag
+spec:
+ clusterIP: "{{ .Values.iagClusterIP }}"
+ ports:
+ - port: {{ .Values.iagPort }}
+ nodePort: {{ .Values.iagNodePort }}
+ selector:
+ app: msb-iag
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: msb-eag
+ labels:
+ app: msb-eag
+spec:
+ clusterIP: "{{ .Values.eagClusterIP }}"
+ ports:
+ - port: {{ .Values.eagPort }}
+ nodePort: {{ .Values.eagNodePort }}
+ selector:
+ app: msb-eag
+ type: NodePort \ No newline at end of file
diff --git a/kubernetes/msb/templates/msb-consul-deployment.yaml b/kubernetes/msb/templates/msb-consul-deployment.yaml
new file mode 100644
index 0000000000..1dbbe8fb1b
--- /dev/null
+++ b/kubernetes/msb/templates/msb-consul-deployment.yaml
@@ -0,0 +1,29 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: msb-consul
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: msb-consul
+ template:
+ metadata:
+ labels:
+ app: msb-consul
+ name: msb-consul
+ spec:
+ hostname: msb-consul
+ containers:
+ - args:
+ image: consul
+ name: "msb-consul"
+ ports:
+ - containerPort: {{ .Values.consulPort }}
+ name: msb-consul
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.consulPort }}
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullPolicy: "{{ .Values.pullPolicy }}" \ No newline at end of file
diff --git a/kubernetes/msb/templates/msb-discovery-deployment.yaml b/kubernetes/msb/templates/msb-discovery-deployment.yaml
new file mode 100644
index 0000000000..0fcd2f9ba9
--- /dev/null
+++ b/kubernetes/msb/templates/msb-discovery-deployment.yaml
@@ -0,0 +1,34 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: msb-discovery
+spec:
+ replicas: {{ .Values.discoveryReplicas }}
+ selector:
+ matchLabels:
+ app: msb-discovery
+ template:
+ metadata:
+ labels:
+ app: msb-discovery
+ name: msb-discovery
+ spec:
+ hostname: msb-discovery
+ containers:
+ - args:
+ image: nexus3.onap.org:10001/onap/msb/msb_discovery
+ name: "msb-discovery"
+ env:
+ - name: CONSUL_IP
+ value: "{{ .Values.consulClusterIP }}"
+ ports:
+ - containerPort: {{ .Values.discoveryPort }}
+ name: msb-discovery
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.discoveryPort }}
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullPolicy: "{{ .Values.pullPolicy }}"
+
+
diff --git a/kubernetes/msb/templates/msb-eag-deployment.yaml b/kubernetes/msb/templates/msb-eag-deployment.yaml
new file mode 100644
index 0000000000..eb75cd9e42
--- /dev/null
+++ b/kubernetes/msb/templates/msb-eag-deployment.yaml
@@ -0,0 +1,38 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: msb-eag
+spec:
+ replicas: {{ .Values.eagReplicas }}
+ selector:
+ matchLabels:
+ app: msb-eag
+ template:
+ metadata:
+ labels:
+ app: msb-eag
+ name: msb-eag
+ spec:
+ hostname: msb-eag
+ containers:
+ - args:
+ image: nexus3.onap.org:10001/onap/msb/msb_apigateway
+ name: "msb-eag"
+ env:
+ - name: CONSUL_IP
+ value: "{{ .Values.consulClusterIP}}"
+ - name: SDCLIENT_IP
+ value: "{{ .Values.discoveryClusterIP}}"
+ - name: ROUTE_LABELS
+ value: "visualRange:0"
+ ports:
+ - containerPort: {{ .Values.eagPort }}
+ name: msb-eag
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.eagPort }}
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullPolicy: "{{ .Values.pullPolicy}}"
+
+
diff --git a/kubernetes/msb/templates/msb-iag-deployment.yaml b/kubernetes/msb/templates/msb-iag-deployment.yaml
new file mode 100644
index 0000000000..d83951a415
--- /dev/null
+++ b/kubernetes/msb/templates/msb-iag-deployment.yaml
@@ -0,0 +1,38 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: msb-iag
+spec:
+ replicas: {{ .Values.iagReplicas }}
+ selector:
+ matchLabels:
+ app: msb-iag
+ template:
+ metadata:
+ labels:
+ app: msb-iag
+ name: msb-iag
+ spec:
+ hostname: msb-iag
+ containers:
+ - args:
+ image: nexus3.onap.org:10001/onap/msb/msb_apigateway
+ name: "msb-iag"
+ env:
+ - name: CONSUL_IP
+ value: "{{ .Values.consulClusterIP}}"
+ - name: SDCLIENT_IP
+ value: "{{ .Values.discoveryClusterIP}}"
+ - name: ROUTE_LABELS
+ value: "visualRange:1"
+ ports:
+ - containerPort: {{ .Values.iagPort }}
+ name: msb-iag
+ readinessProbe:
+ tcpSocket:
+ port: {{ .Values.iagPort }}
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullPolicy: "{{ .Values.pullPolicy}}"
+
+
diff --git a/kubernetes/msb/values.yaml b/kubernetes/msb/values.yaml
new file mode 100644
index 0000000000..38059e1458
--- /dev/null
+++ b/kubernetes/msb/values.yaml
@@ -0,0 +1,20 @@
+consulClusterIP: 10.43.6.204
+consulPort: 8500
+consulNodePort: 30500
+
+discoveryClusterIP: 10.43.6.205
+discoveryPort: 10081
+discoveryNodePort: 30081
+discoveryReplicas: 1
+
+iagClusterIP: 10.43.6.206
+iagPort: 80
+iagNodePort: 30080
+iagReplicas: 1
+
+eagClusterIP: 10.43.6.207
+eagPort: 80
+eagNodePort: 30082
+eagReplicas: 1
+
+pullPolicy: IfNotPresent \ No newline at end of file