gorush/k8s/gorush-deployment.yaml

22 lines
462 B
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gorush
namespace: gorush
spec:
replicas: 3
template:
metadata:
labels:
app: gorush
tier: frontend
spec:
containers:
- image: appleboy/gorush
name: gorush
imagePullPolicy: Always
command: ["/gorush"]
args: ["-c", "config.yml", "-e", "redis", "--redis-addr", "redis:6379"]
ports:
- containerPort: 8088