2017-06-07 14:11:05 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2017-09-17 09:17:37 +00:00
|
|
|
name: gorush
|
2017-09-22 03:22:10 +00:00
|
|
|
namespace: gorush
|
2017-06-07 14:11:05 +00:00
|
|
|
labels:
|
|
|
|
app: gorush
|
|
|
|
tier: frontend
|
|
|
|
spec:
|
2017-09-26 03:10:51 +00:00
|
|
|
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.
|
2020-06-17 21:42:11 +00:00
|
|
|
# type: LoadBalancer
|
|
|
|
#
|
|
|
|
# if you want to expose the service to the outside (without a load balancer in front)
|
2017-09-22 14:30:56 +00:00
|
|
|
# type: NodePort
|
2020-06-17 21:42:11 +00:00
|
|
|
#
|
|
|
|
# if you want gorush to be accessible only within the cluster
|
|
|
|
# type: ClusterIP
|
2017-06-07 14:11:05 +00:00
|
|
|
ports:
|
2017-09-26 03:10:51 +00:00
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
|
|
|
targetPort: 8088
|