summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/sdnc')
-rw-r--r--kubernetes/sdnc/templates/db-deployment.yaml6
-rw-r--r--kubernetes/sdnc/templates/dgbuilder-deployment.yaml8
-rw-r--r--kubernetes/sdnc/templates/sdnc-deployment.yaml6
-rw-r--r--kubernetes/sdnc/templates/sdnc-pv-pvc.yaml6
-rw-r--r--kubernetes/sdnc/templates/web-deployment.yaml8
5 files changed, 31 insertions, 3 deletions
diff --git a/kubernetes/sdnc/templates/db-deployment.yaml b/kubernetes/sdnc/templates/db-deployment.yaml
index 837079819f..7bc8a75214 100644
--- a/kubernetes/sdnc/templates/db-deployment.yaml
+++ b/kubernetes/sdnc/templates/db-deployment.yaml
@@ -23,6 +23,9 @@ spec:
imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-db-container
volumeMounts:
+ - mountPath: /etc/localtime
+ name: localtime
+ readOnly: true
- mountPath: /var/lib/mysql
name: sdnc-data
ports:
@@ -33,6 +36,9 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
- name: sdnc-data
persistentVolumeClaim:
claimName: sdnc-db
diff --git a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml
index 6d911c3381..ba2008ab4a 100644
--- a/kubernetes/sdnc/templates/dgbuilder-deployment.yaml
+++ b/kubernetes/sdnc/templates/dgbuilder-deployment.yaml
@@ -61,6 +61,14 @@ spec:
port: 3100
initialDelaySeconds: 5
periodSeconds: 10
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
restartPolicy: Always
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/sdnc/templates/sdnc-deployment.yaml b/kubernetes/sdnc/templates/sdnc-deployment.yaml
index f4947924ba..4b123906af 100644
--- a/kubernetes/sdnc/templates/sdnc-deployment.yaml
+++ b/kubernetes/sdnc/templates/sdnc-deployment.yaml
@@ -51,6 +51,9 @@ spec:
imagePullPolicy: {{ .Values.pullPolicy }}
name: sdnc-controller-container
volumeMounts:
+ - mountPath: /etc/localtime
+ name: localtime
+ readOnly: true
- mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
name: sdnc-aaiclient-properties
- mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
@@ -63,6 +66,9 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
- name: sdnc-aaiclient-properties
hostPath:
path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
diff --git a/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
index ac890c62b9..f8fe394907 100644
--- a/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
+++ b/kubernetes/sdnc/templates/sdnc-pv-pvc.yaml
@@ -1,10 +1,10 @@
apiVersion: v1
kind: PersistentVolume
metadata:
- name: sdnc-db
+ name: "{{ .Values.nsPrefix }}-sdnc-db"
namespace: "{{ .Values.nsPrefix }}-sdnc"
labels:
- name: sdnc-db
+ name: "{{ .Values.nsPrefix }}-sdnc-db"
spec:
capacity:
storage: 2Gi
@@ -27,4 +27,4 @@ spec:
storage: 2Gi
selector:
matchLabels:
- name: sdnc-db
+ name: "{{ .Values.nsPrefix }}-sdnc-db"
diff --git a/kubernetes/sdnc/templates/web-deployment.yaml b/kubernetes/sdnc/templates/web-deployment.yaml
index a141e765dc..4f7886dc9c 100644
--- a/kubernetes/sdnc/templates/web-deployment.yaml
+++ b/kubernetes/sdnc/templates/web-deployment.yaml
@@ -56,11 +56,19 @@ spec:
name: sdnc-portal-container
ports:
- containerPort: 8843
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
readinessProbe:
tcpSocket:
port: 8843
initialDelaySeconds: 5
periodSeconds: 10
restartPolicy: Always
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"