devops/uat/gateway/web/deployment.yaml

47 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: juno-web-ui
spec:
replicas: 1
selector:
matchLabels:
app: juno-web-ui
template:
metadata:
labels:
app: juno-web-ui
spec:
imagePullSecrets:
- name: ccr
containers:
- name: app
image: ccr.ccs.tencentyun.com/juno/web-ui:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 1m
memory: 1Mi