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