28 lines
515 B
YAML
28 lines
515 B
YAML
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
|
|
nodePort: 30080
|
|
- name: https
|
|
port: 443
|
|
targetPort: 443
|
|
protocol: TCP
|
|
nodePort: 30143
|
|
selector:
|
|
app.kubernetes.io/name: ingress-nginx
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
|
|
---
|
|
|