summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/aai')
-rw-r--r--kubernetes/aai/templates/aai-deployment.yaml89
-rw-r--r--kubernetes/aai/templates/aai-resources-deployment.yaml83
-rw-r--r--kubernetes/aai/templates/aai-traversal-deployment.yaml85
-rw-r--r--kubernetes/aai/templates/all-services.yaml235
-rw-r--r--kubernetes/aai/templates/data-router-deployment.yaml61
-rw-r--r--kubernetes/aai/templates/elasticsearch-deployment.yaml41
-rw-r--r--kubernetes/aai/templates/gremlin-deployment.yaml62
-rw-r--r--kubernetes/aai/templates/hbase-deployment.yaml12
-rw-r--r--kubernetes/aai/templates/modelloader-deployment.yaml89
-rw-r--r--kubernetes/aai/templates/search-data-service-deployment.yaml48
-rw-r--r--kubernetes/aai/templates/sparky-be-deployment.yaml48
-rw-r--r--kubernetes/aai/values.yaml23
12 files changed, 732 insertions, 144 deletions
diff --git a/kubernetes/aai/templates/aai-deployment.yaml b/kubernetes/aai/templates/aai-deployment.yaml
index 162fb99bf9..9b55d4e736 100644
--- a/kubernetes/aai/templates/aai-deployment.yaml
+++ b/kubernetes/aai/templates/aai-deployment.yaml
@@ -13,58 +13,37 @@ spec:
app: aai-service
name: aai-service
annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "hbase"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "aai-service-readiness"
- }
- ]'
+ pod.beta.kubernetes.io/init-containers: '[{
+ "args": [
+ "--container-name", "aai-resources",
+ "--container-name", "aai-traversal"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [{
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "aai-service-readiness"
+ }]'
spec:
containers:
- - env:
- - name: AAI_REPO_PATH
- value: r/aai
- - name: AAI_CHEF_ENV
- value: simpledemo
- - name: AAI_CHEF_LOC
- value: /var/chef/aai-data/environments
- - name: docker_gitbranch
- value: release-1.0.0
- - name: DEBIAN_FRONTEND
- value: noninteractive
- - name: JAVA_HOME
- value: /usr/lib/jvm/java-8-openjdk-amd64
- image: {{ .Values.image.ajscAai }}
+ - name: aai-service
+ image: "{{ .Values.image.aaiProxy }}:{{ .Values.image.aaiProxyVersion}}"
imagePullPolicy: {{ .Values.pullPolicy }}
- name: aai-service
volumeMounts:
- - mountPath: /etc/ssl/certs/
- name: aai-service-certs
- - mountPath: /opt/aai/logroot/
- name: aai-service-logroot
- - mountPath: /var/chef/aai-config/
- name: aai-config
- - mountPath: /var/chef/aai-data/
- name: aai-data
+ - mountPath: /dev/log
+ name: aai-service-log
+ - mountPath: /usr/local/etc/haproxy/haproxy.cfg
+ name: haproxy-cfg
ports:
- containerPort: 8080
- containerPort: 8443
@@ -74,18 +53,12 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- - name: aai-service-certs
+ - name: aai-service-log
hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/etc/ssl/certs/
- - name: aai-service-logroot
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/log/"
+ - name: haproxy-cfg
hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/opt/aai/logroot/
- - name: aai-config
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-config/
- - name: aai-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg"
restartPolicy: Always
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/aai-resources-deployment.yaml b/kubernetes/aai/templates/aai-resources-deployment.yaml
new file mode 100644
index 0000000000..1aff10bb94
--- /dev/null
+++ b/kubernetes/aai/templates/aai-resources-deployment.yaml
@@ -0,0 +1,83 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: aai-resources
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: aai-resources
+ template:
+ metadata:
+ labels:
+ app: aai-resources
+ name: aai-resources
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "hbase"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "aai-resources-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - name: aai-resources
+ image: "{{ .Values.image.aaiResourcesImage }}:{{ .Values.image.aaiResourcesVersion}}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: CHEF_BRANCH
+ value: master
+ - name: AAI_CHEF_ENV
+ value: simpledemo
+ - name: AAI_CORE_VERSION
+ value: 1.1.0-SNAPSHOT
+ - name: AAI_CHEF_LOC
+ value: /var/chef/aai-data/environments
+ - name: CHEF_GIT_URL
+ value: http://gerrit.onap.org/r/aai
+ volumeMounts:
+ - mountPath: /opt/aai/logroot/
+ name: aai-resources-logs
+ - mountPath: /var/chef/aai-data/
+ name: aai-data
+ - mountPath: /docker-entrypoint.sh
+ name: entrypoint-override
+ ports:
+ - containerPort: 8447
+ readinessProbe:
+ tcpSocket:
+ port: 8447
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: aai-resources-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/logs/"
+ - name: aai-data
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
+ - name: entrypoint-override
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-resources/docker-entrypoint.sh"
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/aai-traversal-deployment.yaml b/kubernetes/aai/templates/aai-traversal-deployment.yaml
new file mode 100644
index 0000000000..debd1f6926
--- /dev/null
+++ b/kubernetes/aai/templates/aai-traversal-deployment.yaml
@@ -0,0 +1,85 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: aai-traversal
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: aai-traversal
+ template:
+ metadata:
+ labels:
+ app: aai-traversal
+ name: aai-traversal
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "hbase",
+ "--container-name",
+ "aai-resources"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "aai-traversal-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - name: aai-traversal
+ image: "{{ .Values.image.aaiTraversalImage }}:{{ .Values.image.aaiTraversalVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: CHEF_BRANCH
+ value: master
+ - name: AAI_CHEF_ENV
+ value: simpledemo
+ - name: AAI_CORE_VERSION
+ value: 1.1.0-SNAPSHOT
+ - name: AAI_CHEF_LOC
+ value: /var/chef/aai-data/environments
+ - name: CHEF_GIT_URL
+ value: http://gerrit.onap.org/r/aai
+ volumeMounts:
+ - mountPath: /opt/aai/logroot/
+ name: aai-traversal-logs
+ - mountPath: /var/chef/aai-data/
+ name: aai-data
+ - mountPath: /docker-entrypoint.sh
+ name: entrypoint-override
+ ports:
+ - containerPort: 8446
+ readinessProbe:
+ tcpSocket:
+ port: 8446
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: aai-traversal-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/logs/"
+ - name: aai-data
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-data/"
+ - name: entrypoint-override
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/aai-traversal/docker-entrypoint.sh"
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/all-services.yaml b/kubernetes/aai/templates/all-services.yaml
index 2c0fbc4a5b..01e24e8373 100644
--- a/kubernetes/aai/templates/all-services.yaml
+++ b/kubernetes/aai/templates/all-services.yaml
@@ -7,8 +7,20 @@ metadata:
app: hbase
spec:
ports:
- - name: "hbase-port"
- port: 8020
+ - name: "hbase-port-1"
+ port: 2181
+ - name: "hbase-port-2"
+ port: 8080
+ - name: "hbase-port-3"
+ port: 8085
+ - name: "hbase-port-4"
+ port: 9090
+ - name: "hbase-port-5"
+ port: 16000
+ - name: "hbase-port-6"
+ port: 16010
+ - name: "hbase-port-7"
+ port: 16201
selector:
app: hbase
clusterIP: None
@@ -20,16 +32,133 @@ metadata:
namespace: "{{ .Values.nsPrefix }}-aai"
labels:
app: aai-service
+ annotations:
+ msb.onap.org/service-info: '[
+ {
+ "serviceName": "aai-cloudInfrastructure",
+ "version": "v11",
+ "url": "/aai/v11/cloud-infrastructure",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-cloudInfrastructure-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/cloud-infrastructure",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/cloud-infrastructure"
+ },
+ {
+ "serviceName": "aai-business",
+ "version": "v11",
+ "url": "/aai/v11/business",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-business-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/business",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/business"
+ },
+ {
+ "serviceName": "aai-search",
+ "version": "v11",
+ "url": "/aai/v11/search",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-search-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/search",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/search"
+ },
+ {
+ "serviceName": "aai-actions",
+ "version": "v11",
+ "url": "/aai/v11/actions",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-actions-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/actions",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/actions"
+ },
+ {
+ "serviceName": "aai-service-design-and-creation",
+ "version": "v11",
+ "url": "/aai/v11/service-design-and-creation",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-service-design-and-creation-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/service-design-and-creation",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/service-design-and-creation"
+ },
+ {
+ "serviceName": "aai-network",
+ "version": "v11",
+ "url": "/aai/v11/network",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1"
+ },
+ {
+ "serviceName": "aai-network-deprecated",
+ "version": "v11",
+ "url": "/aai/v11/network",
+ "protocol": "REST",
+ "port": "8443",
+ "enable_ssl":"True",
+ "visualRange":"1",
+ "path":"/aai/v11/network"
+ }
+ ]'
spec:
ports:
- name: "aai-service-port-8443"
port: 8443
targetPort: 8443
- nodePort: 30233
+ nodePort: {{ .Values.nodePortPrefix }}33
- name: "aai-service-port-8080"
port: 8080
targetPort: 8080
- nodePort: 30232
+ nodePort: {{ .Values.nodePortPrefix }}32
type: NodePort
selector:
app: aai-service
@@ -45,10 +174,104 @@ spec:
ports:
- name: "model-loader-service-port-8443"
port: 8443
- nodePort: 30229
+ nodePort: {{ .Values.nodePortPrefix }}29
- name: "model-loader-service-port-8080"
port: 8080
- nodePort: 30210
+ nodePort: {{ .Values.nodePortPrefix }}10
type: NodePort
selector:
app: model-loader-service
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: gremlin
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: gremlin
+spec:
+ ports:
+ - name: "gremlin-port"
+ port: 8182
+ selector:
+ app: gremlin
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: elasticsearch
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: elasticsearch
+spec:
+ ports:
+ - name: "elasticsearch-port"
+ port: 9200
+ selector:
+ app: elasticsearch
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: search-data-service
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: search-data-service
+spec:
+ ports:
+ - name: "search-data-service-port-9509"
+ port: 9509
+ selector:
+ app: search-data-service
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: aai-traversal
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: aai-traversal
+spec:
+ ports:
+ - name: "aai-traversal-port-8446"
+ port: 8446
+ - name: aai-traversal-port-debug
+ port: 5005
+ selector:
+ app: aai-traversal
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: aai-resources
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: aai-resources
+spec:
+ ports:
+ - name: "aai-resources-port-8447"
+ port: 8447
+ - name: aai-resources-port-debug
+ port: 5005
+ selector:
+ app: aai-resources
+ clusterIP: None
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: sparky-be
+ namespace: "{{ .Values.nsPrefix }}-aai"
+ labels:
+ app: sparky-be
+spec:
+ ports:
+ - name: "sparky-be-port-9517"
+ port: 9517
+ selector:
+ app: sparky-be
+ clusterIP: None \ No newline at end of file
diff --git a/kubernetes/aai/templates/data-router-deployment.yaml b/kubernetes/aai/templates/data-router-deployment.yaml
new file mode 100644
index 0000000000..f823061c33
--- /dev/null
+++ b/kubernetes/aai/templates/data-router-deployment.yaml
@@ -0,0 +1,61 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: data-router
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: data-router
+ template:
+ metadata:
+ labels:
+ app: data-router
+ name: data-router
+ spec:
+ containers:
+ - name: data-router
+ image: "{{ .Values.image.dataRouterImage }}:{{ .Values.image.dataRouterVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: SERVICE_BEANS
+ value: /opt/app/data-router/dynamic/conf
+ - name: CONFIG_HOME
+ value: /opt/app/data-router/config/
+ - name: KEY_STORE_PASSWORD
+ value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ - name: DYNAMIC_ROUTES
+ value: /opt/app/data-router/dynamic/routes
+ - name: KEY_MANAGER_PASSWORD
+ value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ - name: PATH
+ value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ - name: JAVA_HOME
+ value: usr/lib/jvm/java-8-openjdk-amd64
+ volumeMounts:
+ - mountPath: /opt/app/data-router/config/
+ name: data-router-config
+ - mountPath: /opt/app/data-router/dynamic/
+ name: data-router-dynamic
+ - mountPath: /logs/
+ name: data-router-logs
+ ports:
+ - containerPort: 9502
+ readinessProbe:
+ tcpSocket:
+ port: 9502
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: data-router-config
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/appconfig/"
+ - name: data-router-dynamic
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/dynamic/"
+ - name: data-router-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/data-router/logs/"
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/elasticsearch-deployment.yaml b/kubernetes/aai/templates/elasticsearch-deployment.yaml
new file mode 100644
index 0000000000..1c2a2ad57b
--- /dev/null
+++ b/kubernetes/aai/templates/elasticsearch-deployment.yaml
@@ -0,0 +1,41 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: elasticsearch
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: elasticsearch
+ template:
+ metadata:
+ labels:
+ app: elasticsearch
+ name: elasticsearch
+ spec:
+ hostname: elasticsearch
+ containers:
+ - name: elasticsearch
+ image: "{{ .Values.image.elasticsearchImage }}:{{ .Values.image.elasticsearchVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ ports:
+ - containerPort: 9200
+ readinessProbe:
+ tcpSocket:
+ port: 9200
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumeMounts:
+ - name: elasticsearch-config
+ mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
+ - name: elasticsearch-data
+ mountPath: /usr/share/elasticsearch/data
+ volumes:
+ - name: elasticsearch-config
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/config/elasticsearch.yml"
+ - name: elasticsearch-data
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/elasticsearch/es-data"
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/gremlin-deployment.yaml b/kubernetes/aai/templates/gremlin-deployment.yaml
new file mode 100644
index 0000000000..d28b286b68
--- /dev/null
+++ b/kubernetes/aai/templates/gremlin-deployment.yaml
@@ -0,0 +1,62 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: gremlin
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: gremlin
+ template:
+ metadata:
+ labels:
+ app: gremlin
+ name: gremlin
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "hbase"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "gremlin-readiness"
+ }
+ ]'
+ spec:
+ hostname: gremlin
+ containers:
+ - name: gremlin
+ image: {{ .Values.image.gremlinServerImage }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: SERVER_HOST
+ value: "hbase.{{ .Values.nsPrefix }}-aai"
+ - name: SERVER_TABLE
+ value: aaigraph.dev
+ - name: GREMLIN_HOST
+ value: "gremlin"
+ ports:
+ - containerPort: 8182
+ readinessProbe:
+ tcpSocket:
+ port: 8182
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/hbase-deployment.yaml b/kubernetes/aai/templates/hbase-deployment.yaml
index 79983eba08..98c38828ec 100644
--- a/kubernetes/aai/templates/hbase-deployment.yaml
+++ b/kubernetes/aai/templates/hbase-deployment.yaml
@@ -16,13 +16,19 @@ spec:
hostname: hbase
containers:
- name: hbase
- image: {{ .Values.image.aaiHbase }}
+ image: "{{ .Values.image.aaiHbaseImage }}:{{ .Values.image.aaiHbaseVersion }}"
imagePullPolicy: {{ .Values.pullPolicy }}
ports:
- - containerPort: 8020
+ - containerPort: 2181
+ - containerPort: 8080
+ - containerPort: 8085
+ - containerPort: 9090
+ - containerPort: 16000
+ - containerPort: 16010
+ - containerPort: 16201
readinessProbe:
tcpSocket:
- port: 8020
+ port: 2181
initialDelaySeconds: 5
periodSeconds: 10
imagePullSecrets:
diff --git a/kubernetes/aai/templates/modelloader-deployment.yaml b/kubernetes/aai/templates/modelloader-deployment.yaml
index f7d855bbf9..5391273d9d 100644
--- a/kubernetes/aai/templates/modelloader-deployment.yaml
+++ b/kubernetes/aai/templates/modelloader-deployment.yaml
@@ -12,88 +12,29 @@ spec:
labels:
app: model-loader-service
name: model-loader-service
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "aai-service"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "model-loader-readiness"
- },
- {
- "args": [
- "--container-name",
- "sdc-es",
- "--container-name",
- "sdc-cs",
- "--container-name",
- "sdc-kb",
- "--container-name",
- "sdc-be",
- "--container-name",
- "sdc-fe"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "value": "{{ .Values.nsPrefix }}-sdc"
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "model-loader-sdc-readiness"
- }
- ]'
spec:
containers:
- env:
- - name: DISTR_CLIENT_ASDC_ADDRESS
- value: sdc-be.{{ .Values.nsPrefix }}-sdc:8443
- - name: DISTR_CLIENT_ENVIRONMENT_NAME
- value: AUTO
- - name: DISTR_CLIENT_USER
- value: aai
- - name: DISTR_CLIENT_PASSWORD
- value: OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
- - name: APP_SERVER_BASE_URL
- value: https://aai-service.{{ .Values.nsPrefix }}-aai:8443
- - name: APP_SERVER_KEYSTORE_PASSWORD
- value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
- - name: APP_SERVER_AUTH_USER
- value: ModelLoader
- - name: APP_SERVER_AUTH_PASSWORD
- value: OBF:1qvu1v2h1sov1sar1wfw1j7j1wg21saj1sov1v1x1qxw
- image: {{ .Values.image.modelLoader }}
+ - name: CONFIG_HOME
+ value: /opt/app/model-loader/config/
+ volumeMounts:
+ - mountPath: /opt/app/model-loader/config/
+ name: aai-model-loader-config
+ - mountPath: /logs/
+ name: aai-model-loader-logs
+ image: "{{ .Values.image.modelLoaderImage }}:{{ .Values.image.modelLoaderVersion }}"
imagePullPolicy: {{ .Values.pullPolicy }}
name: model-loader-service
ports:
- containerPort: 8080
- containerPort: 8443
- readinessProbe:
- tcpSocket:
- port: 8080
- initialDelaySeconds: 5
- periodSeconds: 10
+ volumes:
+ - name: aai-model-loader-config
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/appconfig/"
+ - name: aai-model-loader-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/model-loader/logs/"
restartPolicy: Always
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/search-data-service-deployment.yaml b/kubernetes/aai/templates/search-data-service-deployment.yaml
new file mode 100644
index 0000000000..f2db9370fd
--- /dev/null
+++ b/kubernetes/aai/templates/search-data-service-deployment.yaml
@@ -0,0 +1,48 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: search-data-service
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: search-data-service
+ template:
+ metadata:
+ labels:
+ app: search-data-service
+ name: search-data-service
+ spec:
+ containers:
+ - name: search-data-service
+ image: "{{ .Values.image.searchDataImage }}:{{ .Values.image.searchDataVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: CONFIG_HOME
+ value: /opt/app/search-data-service/config/
+ - name: KEY_STORE_PASSWORD
+ value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ - name: KEY_MANAGER_PASSWORD
+ value: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ volumeMounts:
+ - mountPath: /opt/app/search-data-service/config/
+ name: aai-search-data-service-config
+ - mountPath: /logs/
+ name: aai-search-data-service-logs
+ ports:
+ - containerPort: 9509
+ readinessProbe:
+ tcpSocket:
+ port: 9509
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: aai-search-data-service-config
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/appconfig/"
+ - name: aai-search-data-service-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/search-data-service/logs/"
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/templates/sparky-be-deployment.yaml b/kubernetes/aai/templates/sparky-be-deployment.yaml
new file mode 100644
index 0000000000..6a8ff9308d
--- /dev/null
+++ b/kubernetes/aai/templates/sparky-be-deployment.yaml
@@ -0,0 +1,48 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sparky-be
+ namespace: "{{ .Values.nsPrefix }}-aai"
+spec:
+ selector:
+ matchLabels:
+ app: sparky-be
+ template:
+ metadata:
+ labels:
+ app: sparky-be
+ name: sparky-be
+ spec:
+ containers:
+ - name: sparky-be
+ image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ env:
+ - name: CONFIG_HOME
+ value: /opt/app/sparky/config/
+ - name: KEY_MANAGER_PASSWORD
+ value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
+ - name: KEY_STORE_PASSWORD
+ value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o
+ volumeMounts:
+ - mountPath: /opt/app/sparky/config/
+ name: aai-sparky-be-config
+ - mountPath: /logs/
+ name: aai-sparky-be-logs
+ ports:
+ - containerPort: 9517
+ readinessProbe:
+ tcpSocket:
+ port: 9517
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: aai-sparky-be-config
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/appconfig/"
+ - name: aai-sparky-be-logs
+ hostPath:
+ path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/sparky-be/logs/"
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/aai/values.yaml b/kubernetes/aai/values.yaml
index 3c6894c638..1504b4021e 100644
--- a/kubernetes/aai/values.yaml
+++ b/kubernetes/aai/values.yaml
@@ -1,7 +1,24 @@
nsPrefix: onap
pullPolicy: Always
+nodePortPrefix: 302
image:
readiness: oomk8s/readiness-check:1.0.0
- ajscAai: nexus3.onap.org:10001/openecomp/ajsc-aai:1.0-STAGING-latest
- aaiHbase: aaidocker/aai-hbase-1.2.3:latest
- modelLoader: nexus3.onap.org:10001/openecomp/model-loader:1.0-STAGING-latest
+ aaiProxy: aaionap/haproxy
+ aaiProxyVersion: latest
+ aaiHbaseImage: harisekhon/hbase
+ aaiHbaseVersion: latest
+ modelLoaderImage: nexus3.onap.org:10001/openecomp/model-loader
+ modelLoaderVersion: 1.1-STAGING-latest
+ aaiResourcesImage: nexus3.onap.org:10001/openecomp/aai-resources
+ aaiResourcesVersion: 1.1-STAGING-latest
+ aaiTraversalImage: nexus3.onap.org:10001/openecomp/aai-traversal
+ aaiTraversalVersion: 1.1-STAGING-latest
+ dataRouterImage: nexus3.onap.org:10001/openecomp/data-router
+ dataRouterVersion: 1.1-STAGING-latest
+ elasticsearchImage: elasticsearch
+ elasticsearchVersion: 2.4.1
+ searchDataImage: nexus3.onap.org:10001/openecomp/search-data-service
+ searchDataVersion: 1.1-STAGING-latest
+ sparkyBeImage: nexus3.onap.org:10001/openecomp/sparky-be
+ sparkyBeVersion: 1.1-STAGING-latest
+ gremlinServerImage: aaionap/gremlin-server