42 lines
930 B
YAML
42 lines
930 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: chat-frontend
|
|
name: chat-frontend
|
|
namespace: zhishuyun
|
|
spec:
|
|
replicas: 2
|
|
revisionHistoryLimit: 5
|
|
selector:
|
|
matchLabels:
|
|
app: chat-frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: chat-frontend
|
|
spec:
|
|
containers:
|
|
- image: ghcr.io/zhishuyun/chat-frontend:${TAG}
|
|
name: chat-frontend
|
|
ports:
|
|
- containerPort: 80
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
timeoutSeconds: 10
|
|
resources:
|
|
requests:
|
|
memory: '50Mi'
|
|
cpu: '10m'
|
|
limits:
|
|
memory: '100Mi'
|
|
cpu: '30m'
|
|
imagePullSecrets:
|
|
- name: docker-registry
|
|
restartPolicy: Always
|