updated: 2025-04-27 14:46:47
This commit is contained in:
parent
cad633481f
commit
f02ef01029
|
|
@ -0,0 +1,31 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: juno-design
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: juno-design
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: juno-design
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: ccr
|
||||
containers:
|
||||
- name: app
|
||||
image: ccr.ccs.tencentyun.com/juno/basic:nginx
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
requests:
|
||||
cpu: 1m
|
||||
memory: 1Mi
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: juno-design
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- design.lingpaike.com
|
||||
secretName: design.lingpaike.com
|
||||
rules:
|
||||
- host: design.lingpaike.com
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: juno-design
|
||||
port:
|
||||
number: 80
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: juno-design
|
||||
spec:
|
||||
selector:
|
||||
app: juno-design
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
Loading…
Reference in New Issue