harbor/make/kubernetes/nginx/nginx.svc.yaml

14 lines
293 B
YAML
Raw Normal View History

2016-04-03 05:27:56 +02:00
apiVersion: v1
kind: Service
metadata:
2016-11-21 09:07:04 +01:00
name: nginx
2016-04-03 05:27:56 +02:00
spec:
ports:
- name: http
2016-04-03 05:27:56 +02:00
port: 80
selector:
2016-11-21 09:07:04 +01:00
name: nginx-apps
# Set the external IP to an IP of the cluster node, so that the service can be accessed from outside the kubernetes cluster.
# externalIPs:
# - 10.192.168.5