diff options
author | kerenj <keren.joseph@amdocs.com> | 2017-08-24 11:32:22 +0000 |
---|---|---|
committer | kerenj <keren.joseph@amdocs.com> | 2017-08-24 11:32:59 +0000 |
commit | fdc176253250ac0100a15b0d08fe752e2b5cb701 (patch) | |
tree | b7ef40c4557cf55f06faadf4ea0bb2ad4326e81c /kubernetes/aai | |
parent | 6ca15a741dc9af484a5f8f296a5512ba06255a6e (diff) |
aai K8S-Helm Parameterization
changed aai k8s deployment to support helm parameterization.
Issue-ID: OOM-52
Change-Id: Ifffdb4204a3fdb2c7be62063134c489f8123012d
Signed-off-by: kerenj <keren.joseph@amdocs.com>
Diffstat (limited to 'kubernetes/aai')
-rw-r--r-- | kubernetes/aai/Chart.yaml | 4 | ||||
-rw-r--r-- | kubernetes/aai/templates/aai-deployment.yaml (renamed from kubernetes/aai/aai-deployment.yaml) | 16 | ||||
-rw-r--r-- | kubernetes/aai/templates/all-services.yaml (renamed from kubernetes/aai/all-services.yaml) | 3 | ||||
-rw-r--r-- | kubernetes/aai/templates/hbase-deployment.yaml (renamed from kubernetes/aai/hbase-deployment.yaml) | 6 | ||||
-rw-r--r-- | kubernetes/aai/templates/modelloader-deployment.yaml (renamed from kubernetes/aai/modelloader-deployment.yaml) | 12 | ||||
-rw-r--r-- | kubernetes/aai/values.yaml | 7 |
6 files changed, 34 insertions, 14 deletions
diff --git a/kubernetes/aai/Chart.yaml b/kubernetes/aai/Chart.yaml new file mode 100644 index 0000000000..2046a1059c --- /dev/null +++ b/kubernetes/aai/Chart.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +description: A Helm chart for Kubernetes +name: aai +version: 0.1.0 diff --git a/kubernetes/aai/aai-deployment.yaml b/kubernetes/aai/templates/aai-deployment.yaml index 857044d0f3..286a9aca53 100644 --- a/kubernetes/aai/aai-deployment.yaml +++ b/kubernetes/aai/templates/aai-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: aai-service + namespace: {{ .Values.NS }} spec: selector: matchLabels: @@ -32,8 +33,8 @@ spec: } } ], - "image": "oomk8s/readiness-check:1.0.0", - "imagePullPolicy": "Always", + "image": "{{ .Values.image.readiness }}", + "imagePullPolicy": "{{ .Values.pullPolicy }}", "name": "aai-service-readiness" } ]' @@ -52,7 +53,8 @@ spec: value: noninteractive - name: JAVA_HOME value: /usr/lib/jvm/java-8-openjdk-amd64 - image: nexus3.onap.org:10001/openecomp/ajsc-aai:1.0-STAGING-latest + image: {{ .Values.image.ajscAai }} + imagePullPolicy: {{ .Values.pullPolicy }} name: aai-service volumeMounts: - mountPath: /etc/ssl/certs/ @@ -74,16 +76,16 @@ spec: volumes: - name: aai-service-certs hostPath: - path: /dockerdata-nfs/onapdemo/aai/etc/ssl/certs/ + path: /dockerdata-nfs/onap/aai/etc/ssl/certs/ - name: aai-service-logroot hostPath: - path: /dockerdata-nfs/onapdemo/aai/opt/aai/logroot/ + path: /dockerdata-nfs/onap/aai/opt/aai/logroot/ - name: aai-config hostPath: - path: /dockerdata-nfs/onapdemo/aai/aai-config/ + path: /dockerdata-nfs/onap/aai/aai-config/ - name: aai-data hostPath: - path: /dockerdata-nfs/onapdemo/aai/aai-data/ + path: /dockerdata-nfs/onap/aai/aai-data/ restartPolicy: Always imagePullSecrets: - name: onap-docker-registry-key diff --git a/kubernetes/aai/all-services.yaml b/kubernetes/aai/templates/all-services.yaml index 4cbc5e7f60..4a016f47b5 100644 --- a/kubernetes/aai/all-services.yaml +++ b/kubernetes/aai/templates/all-services.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: hbase + namespace: {{ .Values.NS }} labels: app: hbase spec: @@ -16,6 +17,7 @@ apiVersion: v1 kind: Service metadata: name: aai-service + namespace: {{ .Values.NS }} labels: app: aai-service spec: @@ -36,6 +38,7 @@ apiVersion: v1 kind: Service metadata: name: model-loader-service + namespace: {{ .Values.NS }} labels: app: model-loader-service spec: diff --git a/kubernetes/aai/hbase-deployment.yaml b/kubernetes/aai/templates/hbase-deployment.yaml index d39d0c7459..5de7b98e9a 100644 --- a/kubernetes/aai/hbase-deployment.yaml +++ b/kubernetes/aai/templates/hbase-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: hbase + namespace: {{ .Values.NS }} spec: selector: matchLabels: @@ -16,10 +17,11 @@ spec: volumes: - name: hbase-opt-data hostPath: - path: /dockerdata-nfs/onapdemo/aai/hbase/opt/data + path: /dockerdata-nfs/onap/aai/hbase/opt/data containers: - name: hbase - image: aaidocker/aai-hbase-1.2.3:latest + image: {{ .Values.image.aaiHbase }} + imagePullPolicy: {{ .Values.pullPolicy }} volumeMounts: - mountPath: /opt/data/ name: hbase-opt-data diff --git a/kubernetes/aai/modelloader-deployment.yaml b/kubernetes/aai/templates/modelloader-deployment.yaml index e649fc0565..96c9ee1990 100644 --- a/kubernetes/aai/modelloader-deployment.yaml +++ b/kubernetes/aai/templates/modelloader-deployment.yaml @@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: name: model-loader-service + namespace: {{ .Values.NS }} spec: selector: matchLabels: @@ -32,8 +33,8 @@ spec: } } ], - "image": "oomk8s/readiness-check:1.0.0", - "imagePullPolicy": "Always", + "image": "{{ .Values.image.readiness }}", + "imagePullPolicy": "{{ .Values.pullPolicy }}", "name": "model-loader-readiness" }, { @@ -58,8 +59,8 @@ spec: "value": "onap-sdc" } ], - "image": "oomk8s/readiness-check:1.0.0", - "imagePullPolicy": "Always", + "image": "{{ .Values.image.readiness }}", + "imagePullPolicy": "{{ .Values.pullPolicy }}", "name": "model-loader-sdc-readiness" } ]' @@ -82,7 +83,8 @@ spec: value: ModelLoader - name: APP_SERVER_AUTH_PASSWORD value: OBF:1qvu1v2h1sov1sar1wfw1j7j1wg21saj1sov1v1x1qxw - image: nexus3.onap.org:10001/openecomp/model-loader:1.0-STAGING-latest + image: {{ .Values.image.modelLoader }} + imagePullPolicy: {{ .Values.pullPolicy }} name: model-loader-service ports: - containerPort: 8080 diff --git a/kubernetes/aai/values.yaml b/kubernetes/aai/values.yaml new file mode 100644 index 0000000000..12b8b3b244 --- /dev/null +++ b/kubernetes/aai/values.yaml @@ -0,0 +1,7 @@ +NS: onap-aai +pullPolicy: Always +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 |