Browse Source

更改

master
dengbiao 4 months ago
parent
commit
b5092f2ef5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      k8s/container.yaml

+ 3
- 3
k8s/container.yaml View File

@@ -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


Loading…
Cancel
Save