summaryrefslogtreecommitdiffstats
path: root/kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml
diff options
context:
space:
mode:
authoryangyanyj <yangyanyj@chinamobile.com>2019-02-01 17:31:40 +0800
committerYan Yang <yangyanyj@chinamobile.com>2019-02-03 05:10:32 +0000
commit9e05b261195a99bcb6d6cd771a2b2d7e87a30dff (patch)
treebe7f30c0ee970dcc1ac70f3c5b363080a9388f8a /kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml
parent2b182642d4a6761815ac8172e759a022119622ee (diff)
Add vfc catalog volumn
Issue-ID: OOM-1623 Change-Id: Idd9ecfaa99a7e4e8b57e12a5c442a4a1a3c3a6a0 Signed-off-by: yangyanyj <yangyanyj@chinamobile.com>
Diffstat (limited to 'kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml')
-rw-r--r--kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml b/kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml
index e33d749de6..fe2b1aa1df 100644
--- a/kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml
+++ b/kubernetes/vfc/charts/vfc-catalog/templates/deployment.yaml
@@ -73,6 +73,8 @@ spec:
- name: MYSQL_ADDR
value: "{{ .Values.global.config.dbServiceName }}:{{ .Values.global.config.dbPort }}"
volumeMounts:
+ - name: {{ include "common.fullname" . }}-catalog
+ mountPath: /service/vfc/nfvo/catalog/static
- name: {{ include "common.fullname" . }}-localtime
mountPath: /etc/localtime
readOnly: true
@@ -106,6 +108,13 @@ spec:
mountPath: /usr/share/filebeat/data
volumes:
+ - name: {{ include "common.fullname" . }}-catalog
+ {{- if .Values.persistence.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ include "common.fullname" . }}
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
- name: {{ include "common.fullname" . }}-localtime
hostPath:
path: /etc/localtime