46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: juno-user
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: juno-user
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: juno-user
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: ccr
|
|
containers:
|
|
- name: app
|
|
image: ccr.ccs.tencentyun.com/juno/user:uat
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8072
|
|
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
|