Kaynağa Gözat

更改

master
dengbiao 3 ay önce
ebeveyn
işleme
b5092f2ef5
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      k8s/container.yaml

+ 3
- 3
k8s/container.yaml Dosyayı Görüntüle

@@ -36,9 +36,9 @@ spec:
name: advertisement-cfg
defaultMode: 420
# pvc
- name: advertisement-pvc # 在该部署中的名称,后面使用改名称挂载
- name: advertisement # 在该部署中的名称,后面使用改名称挂载
persistentVolumeClaim:
claimName: advertisement-pvc # pvc的名称
claimName: advertisement # pvc的名称
# Nginx配置
- name: advertisement-nginx
configMap:
@@ -79,7 +79,7 @@ spec:
readOnly: true
mountPath: /etc/localtime
# 存储卷 用于存放前端代码
- name: advertisement-pvc # 前面volumes声明的名称
- name: advertisement # 前面volumes声明的名称
mountPath: /usr/share/nginx/html
- name: advertisement-nginx # Nginx 配置
readOnly: true


Yükleniyor…
İptal
Kaydet