From 1bb935917f7b23c8a949e00af1446c7046e8791b Mon Sep 17 00:00:00 2001 From: qxsugar Date: Fri, 11 Apr 2025 14:06:42 +0800 Subject: [PATCH] updated: 2025-04-11 14:06:42 --- product/mica-gateway/deployment.yaml | 45 ++++++++++++++++++++++++++++ product/mica-gateway/ingress.yaml | 23 ++++++++++++++ product/mica-gateway/service.yaml | 1 + uat/mica-gateway/deployment.yaml | 45 ++++++++++++++++++++++++++++ uat/mica-gateway/ingress.yaml | 23 ++++++++++++++ uat/mica-gateway/service.yaml | 16 ++++++++++ 6 files changed, 153 insertions(+) create mode 100644 product/mica-gateway/deployment.yaml create mode 100644 product/mica-gateway/ingress.yaml create mode 100644 product/mica-gateway/service.yaml create mode 100644 uat/mica-gateway/deployment.yaml create mode 100644 uat/mica-gateway/ingress.yaml create mode 100644 uat/mica-gateway/service.yaml diff --git a/product/mica-gateway/deployment.yaml b/product/mica-gateway/deployment.yaml new file mode 100644 index 0000000..492cbcd --- /dev/null +++ b/product/mica-gateway/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: juno-mica-gateway +spec: + replicas: 1 + selector: + matchLabels: + app: juno-mica-gateway + template: + metadata: + labels: + app: juno-mica-gateway + spec: + imagePullSecrets: + - name: ccr + containers: + - name: app + image: ccr.ccs.tencentyun.com/juno/mica_gateway:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 8080 + name: http + protocol: TCP +# livenessProbe: +# httpGet: +# path: /ping +# port: http +# initialDelaySeconds: 20 +# periodSeconds: 10 +# timeoutSeconds: 5 +# readinessProbe: +# httpGet: +# path: /ping +# port: http +# initialDelaySeconds: 20 +# periodSeconds: 10 +# timeoutSeconds: 5 + resources: + limits: + cpu: "2" + memory: 2Gi + requests: + cpu: 1m + memory: 1Mi diff --git a/product/mica-gateway/ingress.yaml b/product/mica-gateway/ingress.yaml new file mode 100644 index 0000000..16d200c --- /dev/null +++ b/product/mica-gateway/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: juno-mica-gateway + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.middlewares: default-cors@kubernetescrd, default-strip-api@kubernetescrd +spec: + tls: + - hosts: + - mica.lingpaike.com + secretName: mica.lingpaike.com + rules: + - host: mica.lingpaike.com + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: juno-mica-gateway + port: + number: 80 diff --git a/product/mica-gateway/service.yaml b/product/mica-gateway/service.yaml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/product/mica-gateway/service.yaml @@ -0,0 +1 @@ + diff --git a/uat/mica-gateway/deployment.yaml b/uat/mica-gateway/deployment.yaml new file mode 100644 index 0000000..4bd4a09 --- /dev/null +++ b/uat/mica-gateway/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: juno-mica-gateway +spec: + replicas: 1 + selector: + matchLabels: + app: juno-mica-gateway + template: + metadata: + labels: + app: juno-mica-gateway + spec: + imagePullSecrets: + - name: ccr + containers: + - name: app + image: ccr.ccs.tencentyun.com/juno/mica_gateway:uat + imagePullPolicy: IfNotPresent + ports: + - containerPort: 8080 + name: http + protocol: TCP +# livenessProbe: +# httpGet: +# path: /ping +# port: http +# initialDelaySeconds: 20 +# periodSeconds: 10 +# timeoutSeconds: 5 +# readinessProbe: +# httpGet: +# path: /ping +# port: http +# initialDelaySeconds: 20 +# periodSeconds: 10 +# timeoutSeconds: 5 + resources: + limits: + cpu: "2" + memory: 2Gi + requests: + cpu: 1m + memory: 1Mi diff --git a/uat/mica-gateway/ingress.yaml b/uat/mica-gateway/ingress.yaml new file mode 100644 index 0000000..4d17679 --- /dev/null +++ b/uat/mica-gateway/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: juno-mica-gateway + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.middlewares: default-cors@kubernetescrd, default-strip-api@kubernetescrd +spec: + tls: + - hosts: + - mica.qa.lingpaike.com + secretName: mica.qa.lingpaike.com + rules: + - host: mica.qa.lingpaike.com + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: juno-mica-gateway + port: + number: 80 diff --git a/uat/mica-gateway/service.yaml b/uat/mica-gateway/service.yaml new file mode 100644 index 0000000..f4d6b8a --- /dev/null +++ b/uat/mica-gateway/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: juno-mica-gateway +spec: + selector: + app: juno-mica-gateway + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: http + - name: http80 + port: 80 + protocol: TCP + targetPort: http \ No newline at end of file