k8s-playground/nginx-nodeport.yaml

28 lines
515 B
YAML
Raw Normal View History

2019-04-16 11:37:13 +00:00
apiVersion: v1
kind: Service
metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
spec:
type: NodePort
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
2019-05-22 11:37:13 +00:00
nodePort: 30080
2019-04-16 11:37:13 +00:00
- name: https
port: 443
targetPort: 443
protocol: TCP
2019-05-22 11:37:13 +00:00
nodePort: 30143
2019-04-16 11:37:13 +00:00
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---