diff options
Diffstat (limited to 'kubernetes/sdc')
-rw-r--r-- | kubernetes/sdc/templates/all-services.yaml | 8 | ||||
-rw-r--r-- | kubernetes/sdc/templates/sdc-be.yaml | 5 | ||||
-rw-r--r-- | kubernetes/sdc/templates/sdc-cs.yaml | 4 | ||||
-rw-r--r-- | kubernetes/sdc/templates/sdc-fe.yaml | 5 | ||||
-rw-r--r-- | kubernetes/sdc/templates/sdc-pv-pvc.yaml | 30 | ||||
-rw-r--r-- | kubernetes/sdc/values.yaml | 1 |
6 files changed, 37 insertions, 16 deletions
diff --git a/kubernetes/sdc/templates/all-services.yaml b/kubernetes/sdc/templates/all-services.yaml index 93febccbed..88cbe8eeb8 100644 --- a/kubernetes/sdc/templates/all-services.yaml +++ b/kubernetes/sdc/templates/all-services.yaml @@ -57,10 +57,10 @@ metadata: spec: ports: - name: sdc-be-port-8443 - nodePort: 30204 + nodePort: {{ .Values.nodePortPrefix }}04 port: 8443 - name: sdc-be-port-8080 - nodePort: 30205 + nodePort: {{ .Values.nodePortPrefix }}05 port: 8080 selector: app: sdc-be @@ -76,10 +76,10 @@ metadata: spec: ports: - name: sdc-fe-port-9443 - nodePort: 30207 + nodePort: {{ .Values.nodePortPrefix }}07 port: 9443 - name: sdc-fe-port-8181 - nodePort: 30206 + nodePort: {{ .Values.nodePortPrefix }}06 port: 8181 selector: app: sdc-fe diff --git a/kubernetes/sdc/templates/sdc-be.yaml b/kubernetes/sdc/templates/sdc-be.yaml index 38a239e714..d853f18f91 100644 --- a/kubernetes/sdc/templates/sdc-be.yaml +++ b/kubernetes/sdc/templates/sdc-be.yaml @@ -79,8 +79,6 @@ spec: name: sdc-sdc-es-es - mountPath: /root/chef-solo/environments/ name: sdc-environments - - mountPath: /var/lib/jetty/etc/keystore - name: sdc-jetty-keystore - mountPath: /etc/localtime name: sdc-localtime - mountPath: /var/lib/jetty/logs @@ -100,9 +98,6 @@ spec: - name: sdc-environments hostPath: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments - - name: sdc-jetty-keystore - hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/jetty/keystore - name: sdc-localtime hostPath: path: /etc/localtime diff --git a/kubernetes/sdc/templates/sdc-cs.yaml b/kubernetes/sdc/templates/sdc-cs.yaml index b660c90d64..9021194968 100644 --- a/kubernetes/sdc/templates/sdc-cs.yaml +++ b/kubernetes/sdc/templates/sdc-cs.yaml @@ -73,8 +73,8 @@ spec: periodSeconds: 10 volumes: - name: sdc-sdc-cs-cs - hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-cs/CS + persistentVolumeClaim: + claimName: sdc-cs-db - name: sdc-environments hostPath: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments diff --git a/kubernetes/sdc/templates/sdc-fe.yaml b/kubernetes/sdc/templates/sdc-fe.yaml index 53759dc685..915d18b786 100644 --- a/kubernetes/sdc/templates/sdc-fe.yaml +++ b/kubernetes/sdc/templates/sdc-fe.yaml @@ -63,8 +63,6 @@ spec: name: sdc-sdc-es-es - mountPath: /root/chef-solo/environments/ name: sdc-environments - - mountPath: /var/lib/jetty/etc/keystore - name: sdc-jetty-keystore - mountPath: /etc/localtime name: sdc-localtime - mountPath: /var/lib/jetty/logs @@ -86,9 +84,6 @@ spec: - name: sdc-environments hostPath: path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/environments - - name: sdc-jetty-keystore - hostPath: - path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/jetty/keystore - name: sdc-localtime hostPath: path: /etc/localtime diff --git a/kubernetes/sdc/templates/sdc-pv-pvc.yaml b/kubernetes/sdc/templates/sdc-pv-pvc.yaml new file mode 100644 index 0000000000..41f85e9465 --- /dev/null +++ b/kubernetes/sdc/templates/sdc-pv-pvc.yaml @@ -0,0 +1,30 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: sdc-cs-db + namespace: "{{ .Values.nsPrefix }}-sdc" + labels: + name: sdc-cs-db +spec: + capacity: + storage: 2Gi + accessModes: + - ReadWriteMany + persistentVolumeReclaimPolicy: Retain + hostPath: + path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdc/sdc-cs/CS +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: sdc-cs-db + namespace: "{{ .Values.nsPrefix }}-sdc" +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi + selector: + matchLabels: + name: sdc-cs-db diff --git a/kubernetes/sdc/values.yaml b/kubernetes/sdc/values.yaml index 139f08c4f3..58bcf1c3f3 100644 --- a/kubernetes/sdc/values.yaml +++ b/kubernetes/sdc/values.yaml @@ -1,5 +1,6 @@ nsPrefix: onap pullPolicy: Always +nodePortPrefix: 302 image: readiness: oomk8s/readiness-check:1.0.0 sdcKibana: nexus3.onap.org:10001/openecomp/sdc-kibana:1.1-STAGING-latest |