Explorar el Código

update

master
dengbiao hace 2 semanas
padre
commit
6dd17e05bf
Se han modificado 2 ficheros con 15 adiciones y 15 borrados
  1. +3
    -3
      k8s/ingress_prd_wap.yaml
  2. +12
    -12
      k8s/wap_container.yaml

+ 3
- 3
k8s/ingress_prd_wap.yaml Ver fichero

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

+ 12
- 12
k8s/wap_container.yaml Ver fichero

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

Cargando…
Cancelar
Guardar