apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gorush 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: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