summaryrefslogtreecommitdiffstats
path: root/kubernetes/policy
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
committerMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
commitd6ea987caed84a9f36030a5a1516df7c6186362d (patch)
tree265dda9cfb43a78542e4b2ccac382a8a5583bc56 /kubernetes/policy
parent43d96ac929c93d0aa2a55d860e0425a39118f7b4 (diff)
onap on kubernetes source files
Change-Id: I4de34baf90979651223a28323010deb7aef21946 Signed-off-by: Mandeep Khinda <Mandeep.Khinda@amdocs.com>
Diffstat (limited to 'kubernetes/policy')
-rw-r--r--kubernetes/policy/all-services.yaml105
-rw-r--r--kubernetes/policy/dep-brmsgw.yaml63
-rw-r--r--kubernetes/policy/dep-drools.yaml77
-rw-r--r--kubernetes/policy/dep-maria.yaml29
-rw-r--r--kubernetes/policy/dep-nexus.yaml47
-rw-r--r--kubernetes/policy/dep-pap.yaml87
-rw-r--r--kubernetes/policy/dep-pdp.yaml66
-rw-r--r--kubernetes/policy/dep-pypdp.yaml68
8 files changed, 542 insertions, 0 deletions
diff --git a/kubernetes/policy/all-services.yaml b/kubernetes/policy/all-services.yaml
new file mode 100644
index 0000000000..d8d2cfa569
--- /dev/null
+++ b/kubernetes/policy/all-services.yaml
@@ -0,0 +1,105 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: mariadb
+ labels:
+ app: mariadb
+spec:
+ ports:
+ - name: 3306-port
+ port: 3306
+ selector:
+ app: mariadb
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: nexus
+ name: nexus
+spec:
+ ports:
+ - name: nexus-port
+ port: 8081
+ selector:
+ app: nexus
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: drools
+ name: drools
+spec:
+ ports:
+ - name: "drools-port"
+ port: 6969
+ nodePort: 30217
+ selector:
+ app: drools
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: pap
+ labels:
+ app: pap
+spec:
+ ports:
+ - name: 8443-port
+ port: 8443
+ nodePort: 30219
+ - name: 9091-port
+ port: 9091
+ nodePort: 30218
+ selector:
+ app: pap
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: pdp
+ labels:
+ app: pdp
+spec:
+ ports:
+ - name: 8081-port
+ port: 8081
+ nodePort: 30220
+ selector:
+ app: pdp
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: pypdp
+ labels:
+ app: pypdp
+spec:
+ ports:
+ - name: tcp-31032-8480-bm91k
+ port: 8480
+ nodePort: 30221
+ selector:
+ app: pypdp
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: brmsgw
+ labels:
+ app: brmsgw
+spec:
+ ports:
+ - name: 9989-port
+ port: 9989
+ nodePort: 30216
+ selector:
+ app: brmsgw
+ type: NodePort
diff --git a/kubernetes/policy/dep-brmsgw.yaml b/kubernetes/policy/dep-brmsgw.yaml
new file mode 100644
index 0000000000..fc39fc3387
--- /dev/null
+++ b/kubernetes/policy/dep-brmsgw.yaml
@@ -0,0 +1,63 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: brmsgw
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: brmsgw
+ template:
+ metadata:
+ labels:
+ app: brmsgw
+ name: brmsgw
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "mariadb",
+ "--container-name",
+ "nexus",
+ "--container-name",
+ "pap",
+ "--container-name",
+ "pdp",
+ "--container-name",
+ "pypdp"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "brmsgw-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - ./do-start.sh
+ - brmsgw
+ image: nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest
+ name: brmsgw
+ volumeMounts:
+ - mountPath: /tmp/policy-install/config
+ name: pe
+ volumes:
+ - name: pe
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/pe/
diff --git a/kubernetes/policy/dep-drools.yaml b/kubernetes/policy/dep-drools.yaml
new file mode 100644
index 0000000000..e32be052dc
--- /dev/null
+++ b/kubernetes/policy/dep-drools.yaml
@@ -0,0 +1,77 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: drools
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: drools
+ template:
+ metadata:
+ labels:
+ app: drools
+ name: drools
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "mariadb",
+ "--container-name",
+ "nexus",
+ "--container-name",
+ "pap",
+ "--container-name",
+ "pdp",
+ "--container-name",
+ "pypdp",
+ "--container-name",
+ "brmsgw"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "drools-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ - ./do-start.sh
+ image: nexus3.onap.org:10001/openecomp/policy/policy-drools:1.0-STAGING-latest
+ name: drools
+ ports:
+ - containerPort: 6969
+ readinessProbe:
+ tcpSocket:
+ port: 6969
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/policy-install/config
+ name: drools
+ - mountPath: /usr/share/maven/conf/settings.xml
+ name: drools-settingsxml
+ volumes:
+ - name: drools-settingsxml
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/drools/settings.xml
+ - name: drools
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/drools/
diff --git a/kubernetes/policy/dep-maria.yaml b/kubernetes/policy/dep-maria.yaml
new file mode 100644
index 0000000000..e9f4fa2e3f
--- /dev/null
+++ b/kubernetes/policy/dep-maria.yaml
@@ -0,0 +1,29 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: mariadb
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: mariadb
+ template:
+ metadata:
+ labels:
+ app: mariadb
+ spec:
+ hostname: mariadb
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ - exec bash /tmp/do-start.sh
+ image: nexus3.onap.org:10001/openecomp/policy/policy-db:1.0-STAGING-latest
+ name: mariadb
+ ports:
+ - containerPort: 3306
+ readinessProbe:
+ tcpSocket:
+ port: 3306
+ initialDelaySeconds: 5
+ periodSeconds: 10
diff --git a/kubernetes/policy/dep-nexus.yaml b/kubernetes/policy/dep-nexus.yaml
new file mode 100644
index 0000000000..78eefe3c1c
--- /dev/null
+++ b/kubernetes/policy/dep-nexus.yaml
@@ -0,0 +1,47 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: nexus
+spec:
+ selector:
+ matchLabels:
+ app: nexus
+ template:
+ metadata:
+ labels:
+ app: nexus
+ name: nexus
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "mariadb"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "nexus-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - -c
+ - bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
+ image: nexus3.onap.org:10001/openecomp/policy/policy-nexus:1.0-STAGING-latest
+ name: nexus
diff --git a/kubernetes/policy/dep-pap.yaml b/kubernetes/policy/dep-pap.yaml
new file mode 100644
index 0000000000..0a9d0c2150
--- /dev/null
+++ b/kubernetes/policy/dep-pap.yaml
@@ -0,0 +1,87 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: pap
+spec:
+ selector:
+ matchLabels:
+ app: pap
+ template:
+ metadata:
+ labels:
+ app: pap
+ name: pap
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "nexus",
+ "--container-name",
+ "mariadb"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "pap-readiness"
+ },
+ {
+ "env": [
+ {
+ "name": "POD_IP",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "status.podIP"
+ }
+ }
+ }
+ ],
+ "command": ["/bin/bash", "-c", "echo $POD_IP > /config/ip_addr.txt"],
+ "volumeMounts": [
+ {
+ "mountPath": "/config/",
+ "name": "pe"
+ }
+ ],
+ "image": "ubuntu:16.04",
+ "imagePullPolicy": "Always",
+ "name": "generate-ip-addr-txt"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - ./do-start.sh
+ - pap
+ image: nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest
+ name: pap
+ ports:
+ - containerPort: 8443
+ - containerPort: 9091
+ readinessProbe:
+ tcpSocket:
+ port: 9091
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/policy-install/config/
+ name: pe
+ volumes:
+ - name: pe
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/pe/
diff --git a/kubernetes/policy/dep-pdp.yaml b/kubernetes/policy/dep-pdp.yaml
new file mode 100644
index 0000000000..e3d65d4d20
--- /dev/null
+++ b/kubernetes/policy/dep-pdp.yaml
@@ -0,0 +1,66 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: pdp
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: pdp
+ template:
+ metadata:
+ labels:
+ app: pdp
+ name: pdp
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "mariadb",
+ "--container-name",
+ "nexus",
+ "--container-name",
+ "pap"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "pdp-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - ./do-start.sh
+ - pdp
+ image: nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest
+ name: pdp
+ ports:
+ - containerPort: 8081
+ readinessProbe:
+ tcpSocket:
+ port: 8081
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/policy-install/config
+ name: pe
+ volumes:
+ - name: pe
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/pe/
diff --git a/kubernetes/policy/dep-pypdp.yaml b/kubernetes/policy/dep-pypdp.yaml
new file mode 100644
index 0000000000..860dfb1dbb
--- /dev/null
+++ b/kubernetes/policy/dep-pypdp.yaml
@@ -0,0 +1,68 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: pypdp
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: pypdp
+ template:
+ metadata:
+ labels:
+ app: pypdp
+ name: pypdp
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "mariadb",
+ "--container-name",
+ "nexus",
+ "--container-name",
+ "pap",
+ "--container-name",
+ "pdp"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "pypdp-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - command:
+ - /bin/bash
+ - ./do-start.sh
+ - pypdp
+ image: nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest
+ name: pypdp
+ ports:
+ - containerPort: 8480
+ readinessProbe:
+ tcpSocket:
+ port: 8480
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - mountPath: /tmp/policy-install/config
+ name: pe
+ volumes:
+ - name: pe
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/pe/