Browse Source

更改

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


Loading…
Cancel
Save