updated: 2025-04-11 14:06:42
This commit is contained in:
parent
d51df4e1d6
commit
1bb935917f
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue