28 lines
753 B
YAML
28 lines
753 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
spec:
|
|
replicas: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gorush
|
|
tier: frontend
|
|
spec:
|
|
containers:
|
|
- name: gorush
|
|
image: appleboy/gorush
|
|
command: ["/gorush"]
|
|
args: ["-c", "config.yml", "-e", "redis", "--redis-addr", "redis-master:6379"]
|
|
env:
|
|
- name: GET_HOSTS_FROM
|
|
# value: dns
|
|
# If your cluster config does not include a dns service, then to
|
|
# instead access environment variables to find service host
|
|
# info, comment out the 'value: dns' line above, and uncomment the
|
|
# line below:
|
|
value: env
|
|
ports:
|
|
- containerPort: 8088
|