summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdnc')
-rw-r--r--kubernetes/sdnc/templates/all-services.yaml6
-rw-r--r--kubernetes/sdnc/templates/db-deployment.yaml4
-rw-r--r--kubernetes/sdnc/templates/sdnc-pv-pvc.yaml30
-rw-r--r--kubernetes/sdnc/values.yaml1
4 files changed, 36 insertions, 5 deletions
diff --git a/kubernetes/sdnc/templates/all-services.yaml b/kubernetes/sdnc/templates/all-services.yaml
index 311bd7b407..4a24947544 100644
--- a/kubernetes/sdnc/templates/all-services.yaml
+++ b/kubernetes/sdnc/templates/all-services.yaml
@@ -52,7 +52,7 @@ spec:
- name: "sdnc-dgbuilder-port"
port: 3000
targetPort: 3100
- nodePort: 30203
+ nodePort: {{ .Values.nodePortPrefix }}03
type: NodePort
selector:
app: sdnc-dgbuilder
@@ -69,7 +69,7 @@ spec:
- name: "sdnc-port"
port: 8282
targetPort: 8181
- nodePort: 30202
+ nodePort: {{ .Values.nodePortPrefix }}02
type: NodePort
selector:
app: sdnc
@@ -85,7 +85,7 @@ spec:
ports:
- name: "sdnc-portal-port"
port: 8843
- nodePort: 30201
+ nodePort: {{ .Values.nodePortPrefix }}01
type: NodePort
selector:
app: sdnc-portal
diff --git a/kubernetes/sdnc/templates/db-deployment.yaml b/kubernetes/sdnc/templates/db-deployment.yaml
index fc692ba58e..837079819f 100644
--- a/kubernetes/sdnc/templates/db-deployment.yaml
+++ b/kubernetes/sdnc/templates/db-deployment.yaml
@@ -34,7 +34,7 @@ spec:
periodSeconds: 10
volumes:
- name: sdnc-data
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/data
+ persistentVolumeClaim:
+ claimName: sdnc-db
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
new file mode 100644
index 0000000000..ac890c62b9
--- /dev/null
+++ b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: sdnc-db
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+ labels:
+ name: sdnc-db
+spec:
+ capacity:
+ storage: 2Gi
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/data
+---
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: sdnc-db
+ namespace: "{{ .Values.nsPrefix }}-sdnc"
+spec:
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 2Gi
+ selector:
+ matchLabels:
+ name: sdnc-db
diff --git a/kubernetes/sdnc/values.yaml b/kubernetes/sdnc/values.yaml
index 5e17a96a5d..0ccc357526 100644
--- a/kubernetes/sdnc/values.yaml
+++ b/kubernetes/sdnc/values.yaml
@@ -1,5 +1,6 @@
nsPrefix: onap
pullPolicy: Always
+nodePortPrefix: 302
image:
readiness: oomk8s/readiness-check:1.0.0
mysqlServer: mysql/mysql-server:5.6