summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Chart.yaml4
-rw-r--r--templates/aai-deployment.yaml (renamed from aai-deployment.yaml)16
-rw-r--r--templates/all-services.yaml (renamed from all-services.yaml)3
-rw-r--r--templates/hbase-deployment.yaml (renamed from hbase-deployment.yaml)6
-rw-r--r--templates/modelloader-deployment.yaml (renamed from modelloader-deployment.yaml)12
-rw-r--r--values.yaml7
6 files changed, 34 insertions, 14 deletions
diff --git a/Chart.yaml b/Chart.yaml
new file mode 100644
index 0000000..2046a10
--- /dev/null
+++ b/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: aai
+version: 0.1.0
diff --git a/aai-deployment.yaml b/templates/aai-deployment.yaml
index 857044d..286a9ac 100644
--- a/aai-deployment.yaml
+++ b/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/all-services.yaml b/templates/all-services.yaml
index 4cbc5e7..4a016f4 100644
--- a/all-services.yaml
+++ b/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/hbase-deployment.yaml b/templates/hbase-deployment.yaml
index d39d0c7..5de7b98 100644
--- a/hbase-deployment.yaml
+++ b/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/modelloader-deployment.yaml b/templates/modelloader-deployment.yaml
index e649fc0..96c9ee1 100644
--- a/modelloader-deployment.yaml
+++ b/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/values.yaml b/values.yaml
new file mode 100644
index 0000000..12b8b3b
--- /dev/null
+++ b/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