harbor/make/kubernetes/nginx/nginx.svc.yaml
2017-09-26 13:57:44 +08:00

14 lines
293 B
YAML

apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- name: http
port: 80
selector:
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