updated: 2025-03-14 11:00:37

This commit is contained in:
qxsugar 2025-03-14 11:00:37 +08:00
parent e2ac58d9c4
commit 52e5721ce4
3 changed files with 80 additions and 0 deletions

View File

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

View File

@ -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.lingpaike.com
secretName: callback.lingpaike.com
rules:
- host: callback.lingpaike.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: juno-payment-center
port:
number: 8077

View File

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