gorush/k8s/gorush-service.yaml

21 lines
413 B
YAML
Raw Normal View History

2017-06-07 14:11:05 +00:00
apiVersion: v1
kind: Service
metadata:
name: gorush
namespace: gorush
2017-06-07 14:11:05 +00:00
labels:
app: gorush
tier: frontend
spec:
selector:
app: gorush
tier: frontend
2017-06-07 14:11:05 +00:00
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
type: LoadBalancer
# type: NodePort
2017-06-07 14:11:05 +00:00
ports:
- protocol: TCP
port: 80
targetPort: 8088