summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdnc')
-rw-r--r--kubernetes/sdnc/all-services.yaml85
-rw-r--r--kubernetes/sdnc/db-deployment.yaml36
-rw-r--r--kubernetes/sdnc/dgbuilder-deployment.yaml62
-rw-r--r--kubernetes/sdnc/sdnc-deployment.yaml64
-rw-r--r--kubernetes/sdnc/web-deployment.yaml62
5 files changed, 309 insertions, 0 deletions
diff --git a/kubernetes/sdnc/all-services.yaml b/kubernetes/sdnc/all-services.yaml
new file mode 100644
index 0000000000..ce18e028e9
--- /dev/null
+++ b/kubernetes/sdnc/all-services.yaml
@@ -0,0 +1,85 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: dbhost
+ labels:
+ app: sdnc-dbhost
+spec:
+ ports:
+ - port: 3306
+ selector:
+ app: sdnc-dbhost
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnctldb01
+ labels:
+ app: sdnc-dbhost
+spec:
+ ports:
+ - port: 3306
+ selector:
+ app: sdnc-dbhost
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnctldb02
+ labels:
+ app: sdnc-dbhost
+spec:
+ ports:
+ - port: 3306
+ selector:
+ app: sdnc-dbhost
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnc-dgbuilder
+ labels:
+ app: sdnc-dgbuilder
+spec:
+ ports:
+ - name: "sdnc-dgbuilder-port"
+ port: 3000
+ targetPort: 3100
+ nodePort: 30203
+ type: NodePort
+ selector:
+ app: sdnc-dgbuilder
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnhost
+ labels:
+ app: sdnc
+spec:
+ ports:
+ - name: "sdnc-port"
+ port: 8282
+ targetPort: 8181
+ nodePort: 30202
+ type: NodePort
+ selector:
+ app: sdnc
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sdnc-portal
+ labels:
+ app: sdnc-portal
+spec:
+ ports:
+ - name: "sdnc-portal-port"
+ port: 8843
+ nodePort: 30201
+ type: NodePort
+ selector:
+ app: sdnc-portal
diff --git a/kubernetes/sdnc/db-deployment.yaml b/kubernetes/sdnc/db-deployment.yaml
new file mode 100644
index 0000000000..bb8fda5190
--- /dev/null
+++ b/kubernetes/sdnc/db-deployment.yaml
@@ -0,0 +1,36 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sdnc-dbhost
+spec:
+ selector:
+ matchLabels:
+ app: sdnc-dbhost
+ template:
+ metadata:
+ labels:
+ app: sdnc-dbhost
+ name: sdnc-dbhost
+ spec:
+ containers:
+ - env:
+ - name: MYSQL_ROOT_PASSWORD
+ value: openECOMP1.0
+ - name: MYSQL_ROOT_HOST
+ value: '%'
+ image: mysql/mysql-server:5.6
+ name: sdnc-db-container
+ volumeMounts:
+ - mountPath: /var/lib/mysql
+ name: sdnc-data
+ ports:
+ - containerPort: 3306
+ readinessProbe:
+ tcpSocket:
+ port: 3306
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdnc-data
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdnc/data
diff --git a/kubernetes/sdnc/dgbuilder-deployment.yaml b/kubernetes/sdnc/dgbuilder-deployment.yaml
new file mode 100644
index 0000000000..2e6c9a5ffc
--- /dev/null
+++ b/kubernetes/sdnc/dgbuilder-deployment.yaml
@@ -0,0 +1,62 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sdnc-dgbuilder
+spec:
+ selector:
+ matchLabels:
+ app: sdnc-dgbuilder
+ template:
+ metadata:
+ labels:
+ app: sdnc-dgbuilder
+ name: sdnc-dgbuilder
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdnc-db-container",
+ "--container-name",
+ "sdnc-controller-container"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdnc-dgbuilder-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ - cd /opt/openecomp/sdnc/dgbuilder/ && ./start sdnc1.0 && wait
+ env:
+ - name: MYSQL_ROOT_PASSWORD
+ value: openECOMP1.0
+ - name: SDNC_CONFIG_DIR
+ value: /opt/openecomp/sdnc/data/properties
+ image: nexus3.onap.org:10001/openecomp/dgbuilder-sdnc-image:1.0-STAGING-latest
+ name: sdnc-dgbuilder-container
+ ports:
+ - containerPort: 3100
+ readinessProbe:
+ tcpSocket:
+ port: 3100
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ restartPolicy: Always
diff --git a/kubernetes/sdnc/sdnc-deployment.yaml b/kubernetes/sdnc/sdnc-deployment.yaml
new file mode 100644
index 0000000000..50121bebb3
--- /dev/null
+++ b/kubernetes/sdnc/sdnc-deployment.yaml
@@ -0,0 +1,64 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sdnc
+spec:
+ selector:
+ matchLabels:
+ app: sdnc
+ template:
+ metadata:
+ labels:
+ app: sdnc
+ name: sdnc
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdnc-db-container"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdnc-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /opt/openecomp/sdnc/bin/startODL.sh
+ env:
+ - name: MYSQL_ROOT_PASSWORD
+ value: openECOMP1.0
+ - name: SDNC_CONFIG_DIR
+ value: /opt/openecomp/sdnc/data/properties
+ image: nexus3.onap.org:10001/openecomp/sdnc-image:1.0-STAGING-latest
+ name: sdnc-controller-container
+ volumeMounts:
+ - mountPath: /opt/openecomp/sdnc/data/properties
+ name: sdnc-conf
+ ports:
+ - containerPort: 8181
+ readinessProbe:
+ tcpSocket:
+ port: 8181
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdnc-conf
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdnc/conf
diff --git a/kubernetes/sdnc/web-deployment.yaml b/kubernetes/sdnc/web-deployment.yaml
new file mode 100644
index 0000000000..d1edb6f128
--- /dev/null
+++ b/kubernetes/sdnc/web-deployment.yaml
@@ -0,0 +1,62 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sdnc-portal
+spec:
+ selector:
+ matchLabels:
+ app: sdnc-portal
+ template:
+ metadata:
+ labels:
+ app: sdnc-portal
+ name: sdnc-portal
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdnc-db-container",
+ "--container-name",
+ "sdnc-controller-container"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdnc-portal-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ - cd /opt/openecomp/sdnc/admportal/shell && ./start_portal.sh
+ env:
+ - name: MYSQL_ROOT_PASSWORD
+ value: openECOMP1.0
+ - name: SDNC_CONFIG_DIR
+ value: /opt/openecomp/sdnc/data/properties
+ image: nexus3.onap.org:10001/openecomp/admportal-sdnc-image:1.0-STAGING-latest
+ name: sdnc-portal-container
+ ports:
+ - containerPort: 8843
+ readinessProbe:
+ tcpSocket:
+ port: 8843
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ restartPolicy: Always