gorush/k8s/gorush-deployment.yaml

28 lines
614 B
YAML
Raw Normal View History

2017-06-07 14:11:05 +00:00
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gorush
namespace: gorush
2017-06-07 14:11:05 +00:00
spec:
replicas: 3
template:
metadata:
labels:
app: gorush
tier: frontend
spec:
containers:
- image: appleboy/gorush
name: gorush
imagePullPolicy: Always
2017-06-07 14:11:05 +00:00
command: ["/gorush"]
args: ["-c", "config.yml", "-e", "redis", "--redis-addr", "redis:6379"]
2017-06-07 14:11:05 +00:00
ports:
- containerPort: 8088
livenessProbe:
httpGet:
path: /healthz
port: 8088
initialDelaySeconds: 3
periodSeconds: 3