summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdc/templates
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdc/templates')
-rw-r--r--kubernetes/sdc/templates/all-services.yaml86
-rw-r--r--kubernetes/sdc/templates/sdc-be.yaml113
-rw-r--r--kubernetes/sdc/templates/sdc-cs.yaml88
-rw-r--r--kubernetes/sdc/templates/sdc-es.yaml62
-rw-r--r--kubernetes/sdc/templates/sdc-fe.yaml102
-rw-r--r--kubernetes/sdc/templates/sdc-kb.yaml80
6 files changed, 531 insertions, 0 deletions
diff --git a/kubernetes/sdc/templates/all-services.yaml b/kubernetes/sdc/templates/all-services.yaml
new file mode 100644
index 0000000000..25ca65e0da
--- /dev/null
+++ b/kubernetes/sdc/templates/all-services.yaml
@@ -0,0 +1,86 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+ namespace: {{ .Values.NS }}
+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
+ namespace: {{ .Values.NS }}
+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
+ namespace: {{ .Values.NS }}
+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
+ namespace: {{ .Values.NS }}
+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
+ namespace: {{ .Values.NS }}
+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/templates/sdc-be.yaml b/kubernetes/sdc/templates/sdc-be.yaml
new file mode 100644
index 0000000000..96fee818da
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-be.yaml
@@ -0,0 +1,113 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-be
+ name: sdc-be
+ namespace: {{ .Values.NS }}
+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": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "sdc-be-readiness"
+ },
+ {
+ "args": [
+ "--container-name",
+ "dmaap"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "value": "onap-message-router"
+ }
+ ],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "sdc-dmaap-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - env:
+ - name: ENVNAME
+ value: AUTO
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ image: {{ .Values.image.sdcBackend }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ 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/onap/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/environments
+ - name: sdc-jetty-keystore
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/jetty/keystore
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/logs
+ imagePullSecrets:
+ - name: onap-docker-registry-key
diff --git a/kubernetes/sdc/templates/sdc-cs.yaml b/kubernetes/sdc/templates/sdc-cs.yaml
new file mode 100644
index 0000000000..55a5613609
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-cs.yaml
@@ -0,0 +1,88 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-cs
+ name: sdc-cs
+ namespace: {{ .Values.NS }}
+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": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "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: {{ .Values.image.sdcCassandra }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ 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/onap/sdc/sdc-cs/CS
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/logs
+ imagePullSecrets:
+ - name: onap-docker-registry-key
diff --git a/kubernetes/sdc/templates/sdc-es.yaml b/kubernetes/sdc/templates/sdc-es.yaml
new file mode 100644
index 0000000000..f1dfb43f0b
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-es.yaml
@@ -0,0 +1,62 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+ namespace: {{ .Values.NS }}
+spec:
+ selector:
+ matchLabels:
+ app: sdc-es
+ template:
+ metadata:
+ labels:
+ app: sdc-es
+ name: sdc-es
+ spec:
+ containers:
+ - image: {{ .Values.image.sdcElasticsearch }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ 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/onap/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/logs
+ imagePullSecrets:
+ - name: onap-docker-registry-key
diff --git a/kubernetes/sdc/templates/sdc-fe.yaml b/kubernetes/sdc/templates/sdc-fe.yaml
new file mode 100644
index 0000000000..a566b15a02
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-fe.yaml
@@ -0,0 +1,102 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-fe
+ name: sdc-fe
+ namespace: {{ .Values.NS }}
+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": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "sdc-fe-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - name: sdc-fe
+ env:
+ - name: ENVNAME
+ value: AUTO
+ - name: HOST_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ image: {{ .Values.image.sdcFrontend }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ 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/onap/sdc/sdc-es/ES
+ - name: sdc-environments
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/environments
+ - name: sdc-jetty-keystore
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/jetty/keystore
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/logs
+ - name: sdc-fe-config
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/sdc-fe/FE_2_setup_configuration.rb
+ imagePullSecrets:
+ - name: onap-docker-registry-key
diff --git a/kubernetes/sdc/templates/sdc-kb.yaml b/kubernetes/sdc/templates/sdc-kb.yaml
new file mode 100644
index 0000000000..0dca7e45a2
--- /dev/null
+++ b/kubernetes/sdc/templates/sdc-kb.yaml
@@ -0,0 +1,80 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: sdc-kb
+ name: sdc-kb
+ namespace: {{ .Values.NS }}
+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": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "sdc-kb-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - env:
+ - name: ENVNAME
+ value: AUTO
+ - name: ELASTICSEARCH_URL
+ value: http://sdc-es:9200
+ image: {{ .Values.image.sdcKibana }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ 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/onap/sdc/environments
+ - name: sdc-localtime
+ hostPath:
+ path: /etc/localtime
+ - name: sdc-logs
+ hostPath:
+ path: /dockerdata-nfs/onap/sdc/logs
+ imagePullSecrets:
+ - name: onap-docker-registry-key