2020-06-17 21:42:11 +00:00
|
|
|
apiVersion: apps/v1
|
2017-06-07 14:11:05 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2017-09-17 09:17:37 +00:00
|
|
|
name: gorush
|
2017-09-22 03:22:10 +00:00
|
|
|
namespace: gorush
|
2017-06-07 14:11:05 +00:00
|
|
|
spec:
|
|
|
|
replicas: 3
|
2020-06-17 21:42:11 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: gorush
|
|
|
|
tier: frontend
|
2017-06-07 14:11:05 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: gorush
|
|
|
|
tier: frontend
|
|
|
|
spec:
|
|
|
|
containers:
|
2017-09-22 03:22:10 +00:00
|
|
|
- image: appleboy/gorush
|
|
|
|
name: gorush
|
|
|
|
imagePullPolicy: Always
|
2017-06-07 14:11:05 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8088
|
2017-09-26 03:10:51 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8088
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
periodSeconds: 3
|
2017-10-23 04:58:02 +00:00
|
|
|
env:
|
|
|
|
- name: GORUSH_STAT_ENGINE
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: gorush-config
|
|
|
|
key: stat.engine
|
|
|
|
- name: GORUSH_STAT_REDIS_ADDR
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: gorush-config
|
|
|
|
key: stat.redis.host
|