summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdc')
-rw-r--r--kubernetes/sdc/all-services.yaml81
-rw-r--r--kubernetes/sdc/sdc-be.yaml109
-rw-r--r--kubernetes/sdc/sdc-cs.yaml84
-rw-r--r--kubernetes/sdc/sdc-es.yaml58
-rw-r--r--kubernetes/sdc/sdc-fe.yaml98
-rw-r--r--kubernetes/sdc/sdc-kb.yaml76
6 files changed, 506 insertions, 0 deletions
diff --git a/kubernetes/sdc/all-services.yaml b/kubernetes/sdc/all-services.yaml
new file mode 100644
index 0000000000..1d832f0c4f
--- /dev/null
+++ b/kubernetes/sdc/all-services.yaml
@@ -0,0 +1,81 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+spec:
+ ports:
+ - name: sdc-es-port-9200
+ port: 9200
+ - name: sdc-es-port-9300
+ port: 9300
+ selector:
+ app: sdc-es
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-cs
+ name: sdc-cs
+spec:
+ ports:
+ - name: sdc-cs-port-9042
+ port: 9042
+ - name: sdc-cs-port-9160
+ port: 9160
+ selector:
+ app: sdc-cs
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-kb
+ name: sdc-kb
+spec:
+ ports:
+ - name: sdc-kb-port-5601
+ port: 5601
+ selector:
+ app: sdc-kb
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-be
+ name: sdc-be
+spec:
+ ports:
+ - name: sdc-be-port-8443
+ nodePort: 30204
+ port: 8443
+ - name: sdc-be-port-8080
+ nodePort: 30205
+ port: 8080
+ selector:
+ app: sdc-be
+ type: NodePort
+---
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-fe
+ name: sdc-fe
+spec:
+ ports:
+ - name: sdc-fe-port-9443
+ nodePort: 30207
+ port: 9443
+ - name: sdc-fe-port-8181
+ nodePort: 30206
+ port: 8181
+ selector:
+ app: sdc-fe
+ type: NodePort
diff --git a/kubernetes/sdc/sdc-be.yaml b/kubernetes/sdc/sdc-be.yaml
new file mode 100644
index 0000000000..964a2470af
--- /dev/null
+++ b/kubernetes/sdc/sdc-be.yaml
@@ -0,0 +1,109 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-be
+ name: sdc-be
+spec:
+ selector:
+ matchLabels:
+ app: sdc-be
+ template:
+ metadata:
+ labels:
+ app: sdc-be
+ name: sdc-be
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdc-es",
+ "--container-name",
+ "sdc-cs",
+ "--container-name",
+ "sdc-kb"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdc-be-readiness"
+ },
+ {
+ "args": [
+ "--container-name",
+ "dmaap"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "value": "onap-message-router"
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdc-dmaap-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - env:
+ - name: ENVNAME
+ value: AUTO
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ image: nexus3.onap.org:10001/openecomp/sdc-backend:1.0-STAGING-latest
+ name: sdc-be
+ volumeMounts:
+ - mountPath: /usr/share/elasticsearch/data/
+ name: sdc-sdc-es-es
+ - mountPath: /root/chef-solo/environments/
+ name: sdc-environments
+ - mountPath: /var/lib/jetty/etc/keystore
+ name: sdc-jetty-keystore
+ - mountPath: /etc/localtime
+ name: sdc-localtime
+ - mountPath: /var/lib/jetty/logs
+ name: sdc-logs
+ ports:
+ - containerPort: 8443
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8443
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdc-sdc-es-es
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/environments
+ - name: sdc-jetty-keystore
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/jetty/keystore
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/logs
diff --git a/kubernetes/sdc/sdc-cs.yaml b/kubernetes/sdc/sdc-cs.yaml
new file mode 100644
index 0000000000..d9857634f1
--- /dev/null
+++ b/kubernetes/sdc/sdc-cs.yaml
@@ -0,0 +1,84 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-cs
+ name: sdc-cs
+spec:
+ selector:
+ matchLabels:
+ app: sdc-cs
+ template:
+ metadata:
+ labels:
+ app: sdc-cs
+ name: sdc-cs
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdc-es"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdc-cs-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - env:
+ - name: ENVNAME
+ value: AUTO
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: ES_HEAP_SIZE
+ value: "1024M"
+ image: nexus3.onap.org:10001/openecomp/sdc-cassandra:1.0-STAGING-latest
+ name: sdc-cs
+ volumeMounts:
+ - mountPath: /var/lib/cassandra/
+ name: sdc-sdc-cs-cs
+ - mountPath: /root/chef-solo/environments/
+ name: sdc-environments
+ - mountPath: /etc/localtime
+ name: sdc-localtime
+ - mountPath: /var/lib/jetty/logs
+ name: sdc-logs
+ ports:
+ - containerPort: 9042
+ - containerPort: 9160
+ readinessProbe:
+ tcpSocket:
+ port: 9160
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdc-sdc-cs-cs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/sdc-cs/CS
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/logs
diff --git a/kubernetes/sdc/sdc-es.yaml b/kubernetes/sdc/sdc-es.yaml
new file mode 100644
index 0000000000..78577eecdd
--- /dev/null
+++ b/kubernetes/sdc/sdc-es.yaml
@@ -0,0 +1,58 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+spec:
+ selector:
+ matchLabels:
+ app: sdc-es
+ template:
+ metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+ spec:
+ containers:
+ - image: nexus3.onap.org:10001/openecomp/sdc-elasticsearch:1.0-STAGING-latest
+ name: sdc-es
+ env:
+ - name: ENVNAME
+ value: "AUTO"
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: ES_HEAP_SIZE
+ value: "1024M"
+ volumeMounts:
+ - mountPath: /usr/share/elasticsearch/data/
+ name: sdc-sdc-es-es
+ - mountPath: /root/chef-solo/environments/
+ name: sdc-environments
+ - mountPath: /etc/localtime
+ name: sdc-localtime
+ - mountPath: /var/lib/jetty/logs
+ name: sdc-logs
+ ports:
+ - containerPort: 9200
+ - containerPort: 9300
+ readinessProbe:
+ tcpSocket:
+ port: 9200
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdc-sdc-es-es
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/logs
diff --git a/kubernetes/sdc/sdc-fe.yaml b/kubernetes/sdc/sdc-fe.yaml
new file mode 100644
index 0000000000..9ac835021f
--- /dev/null
+++ b/kubernetes/sdc/sdc-fe.yaml
@@ -0,0 +1,98 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-fe
+ name: sdc-fe
+spec:
+ selector:
+ matchLabels:
+ app: sdc-fe
+ template:
+ metadata:
+ labels:
+ app: sdc-fe
+ name: sdc-fe
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdc-es",
+ "--container-name",
+ "sdc-cs",
+ "--container-name",
+ "sdc-kb",
+ "--container-name",
+ "sdc-be"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdc-fe-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - name: sdc-fe
+ env:
+ - name: ENVNAME
+ value: AUTO
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ image: nexus3.onap.org:10001/openecomp/sdc-frontend:1.0-STAGING-latest
+ volumeMounts:
+ - mountPath: /usr/share/elasticsearch/data/
+ name: sdc-sdc-es-es
+ - mountPath: /root/chef-solo/environments/
+ name: sdc-environments
+ - mountPath: /var/lib/jetty/etc/keystore
+ name: sdc-jetty-keystore
+ - mountPath: /etc/localtime
+ name: sdc-localtime
+ - mountPath: /var/lib/jetty/logs
+ name: sdc-logs
+ - mountPath: /root/chef-solo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
+ name: sdc-fe-config
+ ports:
+ - containerPort: 9443
+ - containerPort: 8181
+ readinessProbe:
+ tcpSocket:
+ port: 8181
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdc-sdc-es-es
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/environments
+ - name: sdc-jetty-keystore
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/jetty/keystore
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/logs
+ - name: sdc-fe-config
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/sdc-fe/FE_2_setup_configuration.rb
diff --git a/kubernetes/sdc/sdc-kb.yaml b/kubernetes/sdc/sdc-kb.yaml
new file mode 100644
index 0000000000..d39386b77b
--- /dev/null
+++ b/kubernetes/sdc/sdc-kb.yaml
@@ -0,0 +1,76 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-kb
+ name: sdc-kb
+spec:
+ selector:
+ matchLabels:
+ app: sdc-kb
+ template:
+ metadata:
+ labels:
+ app: sdc-kb
+ name: sdc-kb
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "sdc-es",
+ "--container-name",
+ "sdc-cs"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "oomk8s/readiness-check:1.0.0",
+ "imagePullPolicy": "Always",
+ "name": "sdc-kb-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - env:
+ - name: ENVNAME
+ value: AUTO
+ - name: ELASTICSEARCH_URL
+ value: http://sdc-es:9200
+ image: nexus3.onap.org:10001/openecomp/sdc-kibana:1.0-STAGING-latest
+ name: sdc-kb
+ volumeMounts:
+ - mountPath: /root/chef-solo/environments/
+ name: sdc-environments
+ - mountPath: /etc/localtime
+ name: sdc-localtime
+ - mountPath: /var/lib/jetty/logs
+ name: sdc-logs
+ ports:
+ - containerPort: 5601
+ readinessProbe:
+ tcpSocket:
+ port: 5601
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onapdemo/sdc/logs