From 6dd17e05bfd6c44315311149cf799e7fe6409c72 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 6 Dec 2024 21:00:13 +0800 Subject: [PATCH] update --- k8s/ingress_prd_wap.yaml | 6 +++--- k8s/wap_container.yaml | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/k8s/ingress_prd_wap.yaml b/k8s/ingress_prd_wap.yaml index 0aba314..4ce9368 100644 --- a/k8s/ingress_prd_wap.yaml +++ b/k8s/ingress_prd_wap.yaml @@ -1,7 +1,7 @@ kind: Ingress apiVersion: networking.k8s.io/v1 metadata: - name: ddxq.ddstaros.com + name: hddxq.ddstaros.com namespace: egg annotations: cert-manager.io/cluster-issuer: letsencrypt-prod @@ -9,13 +9,13 @@ metadata: spec: ingressClassName: nginx rules: - - host: ddxq.ddstaros.com + - host: hddxq.ddstaros.com http: paths: - path: / pathType: ImplementationSpecific backend: service: - name: egg-pc + name: egg-pc-h5 port: number: 80 diff --git a/k8s/wap_container.yaml b/k8s/wap_container.yaml index 185b4be..96d00a7 100644 --- a/k8s/wap_container.yaml +++ b/k8s/wap_container.yaml @@ -1,40 +1,40 @@ kind: Deployment apiVersion: apps/v1 metadata: - name: egg-pc + name: egg-pc-h5 namespace: egg labels: - app: egg-pc + app: egg-pc-h5 annotations: kubesphere.io/creator: dengbiao - kubesphere.io/description: egg-pc + kubesphere.io/description: egg-pc-h5 spec: replicas: 1 selector: matchLabels: - app: egg-pc + app: egg-pc-h5 template: metadata: labels: - app: egg-pc + app: egg-pc-h5 spec: volumes: - name: host-time hostPath: path: /etc/localtime type: '' - - name: egg-pc-nginx + - name: egg-pc-h5-nginx configMap: - name: egg-pc-nginx + name: egg-pc-h5-nginx items: - key: pc.conf path: default.conf defaultMode: 420 - - name: egg-pc + - name: egg-pc-h5 persistentVolumeClaim: - claimName: egg-pc + claimName: egg-pc-h5 containers: - - name: container-pc + - name: container-pc-h5 image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/nginx:latest' ports: - name: tcp-80 @@ -45,11 +45,11 @@ spec: - name: host-time readOnly: true mountPath: /etc/localtime - - name: egg-pc-nginx + - name: egg-pc-h5-nginx readOnly: true mountPath: /etc/nginx/conf.d/default.conf subPath: default.conf - - name: egg-pc + - name: egg-pc-h5 mountPath: /usr/share/nginx/html restartPolicy: Always terminationGracePeriodSeconds: 30