aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc
diff options
context:
space:
mode:
authorkerenj <keren.joseph@amdocs.com>2017-08-23 13:35:43 +0000
committerkerenj <keren.joseph@amdocs.com>2017-08-23 13:35:51 +0000
commit9daad02ddb9e43ed7e2d1af271792369d24ae586 (patch)
treef3f25755c3182256c688ced71707d39b8e0c9d35 /kubernetes/sdnc
parent9e77b21fc896b5018af2bfb27053a3273bfae31c (diff)
sdnc K8S-Helm Parameterization
changed sdnc k8s deployment to support helm parameterization. updated image to 1.1 Issue-ID: OOM-52 Change-Id: Ie9ec8f60c80caffc69637bf83043902eef45dc18 Signed-off-by: kerenj <keren.joseph@amdocs.com>
Diffstat (limited to 'kubernetes/sdnc')
-rw-r--r--kubernetes/sdnc/Chart.yaml4
-rw-r--r--kubernetes/sdnc/templates/all-services.yaml (renamed from kubernetes/sdnc/all-services.yaml)6
-rw-r--r--kubernetes/sdnc/templates/db-deployment.yaml (renamed from kubernetes/sdnc/db-deployment.yaml)4
-rw-r--r--kubernetes/sdnc/templates/dgbuilder-deployment.yaml (renamed from kubernetes/sdnc/dgbuilder-deployment.yaml)10
-rw-r--r--kubernetes/sdnc/templates/sdnc-deployment.yaml (renamed from kubernetes/sdnc/sdnc-deployment.yaml)8
-rw-r--r--kubernetes/sdnc/templates/web-deployment.yaml (renamed from kubernetes/sdnc/web-deployment.yaml)8
-rw-r--r--kubernetes/sdnc/values.yaml8
7 files changed, 37 insertions, 11 deletions
diff --git a/kubernetes/sdnc/Chart.yaml b/kubernetes/sdnc/Chart.yaml
new file mode 100644
index 0000000000..2daeef2e46
--- /dev/null
+++ b/kubernetes/sdnc/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: sdnc
+version: 0.1.0
diff --git a/kubernetes/sdnc/all-services.yaml b/kubernetes/sdnc/templates/all-services.yaml
index ce18e028e9..af42db3063 100644
--- a/kubernetes/sdnc/all-services.yaml
+++ b/kubernetes/sdnc/templates/all-services.yaml
@@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: dbhost
+ namespace: {{ .Values.NS }}
labels:
app: sdnc-dbhost
spec:
@@ -15,6 +16,7 @@ apiVersion: v1
kind: Service
metadata:
name: sdnctldb01
+ namespace: {{ .Values.NS }}
labels:
app: sdnc-dbhost
spec:
@@ -28,6 +30,7 @@ apiVersion: v1
kind: Service
metadata:
name: sdnctldb02
+ namespace: {{ .Values.NS }}
labels:
app: sdnc-dbhost
spec:
@@ -41,6 +44,7 @@ apiVersion: v1
kind: Service
metadata:
name: sdnc-dgbuilder
+ namespace: {{ .Values.NS }}
labels:
app: sdnc-dgbuilder
spec:
@@ -57,6 +61,7 @@ apiVersion: v1
kind: Service
metadata:
name: sdnhost
+ namespace: {{ .Values.NS }}
labels:
app: sdnc
spec:
@@ -73,6 +78,7 @@ apiVersion: v1
kind: Service
metadata:
name: sdnc-portal
+ namespace: {{ .Values.NS }}
labels:
app: sdnc-portal
spec:
diff --git a/kubernetes/sdnc/db-deployment.yaml b/kubernetes/sdnc/templates/db-deployment.yaml
index 685edec242..1a2ecbae66 100644
--- a/kubernetes/sdnc/db-deployment.yaml
+++ b/kubernetes/sdnc/templates/db-deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sdnc-dbhost
+ namespace: {{ .Values.NS }}
spec:
selector:
matchLabels:
@@ -18,7 +19,8 @@ spec:
value: openECOMP1.0
- name: MYSQL_ROOT_HOST
value: '%'
- image: mysql/mysql-server:5.6
+ image: {{ .Values.image.mysqlServer }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-db-container
volumeMounts:
- mountPath: /var/lib/mysql
diff --git a/kubernetes/sdnc/dgbuilder-deployment.yaml b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml
index 13781ff939..367043337b 100644
--- a/kubernetes/sdnc/dgbuilder-deployment.yaml
+++ b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sdnc-dgbuilder
+ namespace: {{ .Values.NS }}
spec:
selector:
matchLabels:
@@ -34,8 +35,8 @@ spec:
}
}
],
- "image": "oomk8s/readiness-check:1.0.0",
- "imagePullPolicy": "Always",
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
"name": "sdnc-dgbuilder-readiness"
}
]'
@@ -44,13 +45,14 @@ spec:
- command:
- /bin/bash
- -c
- - cd /opt/openecomp/sdnc/dgbuilder/ && ./start sdnc1.0 && wait
+ - cd /opt/openecomp/sdnc/dgbuilder/ && ./start.sh sdnc1.0 && wait
env:
- name: MYSQL_ROOT_PASSWORD
value: openECOMP1.0
- name: SDNC_CONFIG_DIR
value: /opt/openecomp/sdnc/data/properties
- image: nexus3.onap.org:10001/openecomp/dgbuilder-sdnc-image:1.0-STAGING-latest
+ image: {{ .Values.image.dgbuilderSdnc }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-dgbuilder-container
ports:
- containerPort: 3100
diff --git a/kubernetes/sdnc/sdnc-deployment.yaml b/kubernetes/sdnc/templates/sdnc-deployment.yaml
index 0dc48393e4..eb1fdc89fb 100644
--- a/kubernetes/sdnc/sdnc-deployment.yaml
+++ b/kubernetes/sdnc/templates/sdnc-deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sdnc
+ 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": "sdnc-readiness"
}
]'
@@ -46,7 +47,8 @@ spec:
value: openECOMP1.0
- name: SDNC_CONFIG_DIR
value: /opt/openecomp/sdnc/data/properties
- image: nexus3.onap.org:10001/openecomp/sdnc-image:1.0-STAGING-latest
+ image: {{ .Values.image.sdnc }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-controller-container
volumeMounts:
- mountPath: /opt/openecomp/sdnc/data/properties
diff --git a/kubernetes/sdnc/web-deployment.yaml b/kubernetes/sdnc/templates/web-deployment.yaml
index 36df93beea..280bf25400 100644
--- a/kubernetes/sdnc/web-deployment.yaml
+++ b/kubernetes/sdnc/templates/web-deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sdnc-portal
+ namespace: {{ .Values.NS }}
spec:
selector:
matchLabels:
@@ -34,8 +35,8 @@ spec:
}
}
],
- "image": "oomk8s/readiness-check:1.0.0",
- "imagePullPolicy": "Always",
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
"name": "sdnc-portal-readiness"
}
]'
@@ -50,7 +51,8 @@ spec:
value: openECOMP1.0
- name: SDNC_CONFIG_DIR
value: /opt/openecomp/sdnc/data/properties
- image: nexus3.onap.org:10001/openecomp/admportal-sdnc-image:1.0-STAGING-latest
+ image: {{ .Values.image.admportalSdnc }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-portal-container
ports:
- containerPort: 8843
diff --git a/kubernetes/sdnc/values.yaml b/kubernetes/sdnc/values.yaml
new file mode 100644
index 0000000000..b9b3c0479f
--- /dev/null
+++ b/kubernetes/sdnc/values.yaml
@@ -0,0 +1,8 @@
+NS: onap-sdnc
+pullPolicy: Always
+image:
+ readiness: oomk8s/readiness-check:1.0.0
+ mysqlServer: mysql/mysql-server:5.6
+ dgbuilderSdnc: nexus3.onap.org:10001/openecomp/dgbuilder-sdnc-image:1.1-STAGING-latest
+ sdnc: nexus3.onap.org:10001/openecomp/sdnc-image:1.1-STAGING-latest
+ admportalSdnc: nexus3.onap.org:10001/openecomp/admportal-sdnc-image:1.1-STAGING-latest