diff --git a/uat/payment-center/deployment.yaml b/uat/payment-center/deployment.yaml new file mode 100644 index 0000000..3a633ea --- /dev/null +++ b/uat/payment-center/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: juno-payment-center +spec: + replicas: 1 + selector: + matchLabels: + app: juno-payment-center + template: + metadata: + labels: + app: juno-payment-center + spec: + imagePullSecrets: + - name: ccr + containers: + - name: app + image: ccr.ccs.tencentyun.com/juno/payment-center:uat + imagePullPolicy: IfNotPresent + ports: + - containerPort: 8077 + 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/payment-center/ingress.yaml b/uat/payment-center/ingress.yaml new file mode 100644 index 0000000..1a0772b --- /dev/null +++ b/uat/payment-center/ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: juno-payment-center + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.middlewares: default-cors@kubernetescrd +spec: + tls: + - hosts: + - callback.qa.lingpaike.com + secretName: callback.qa.lingpaike.com + rules: + - host: callback.qa.lingpaike.com + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: juno-payment-center + port: + number: 8077 \ No newline at end of file diff --git a/uat/payment-center/service.yaml b/uat/payment-center/service.yaml new file mode 100644 index 0000000..17a0ab3 --- /dev/null +++ b/uat/payment-center/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: juno-payment-center +spec: + selector: + app: juno-payment-center + ports: + - name: http + port: 8077 + protocol: TCP + targetPort: http