25 lines
495 B
YAML
25 lines
495 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: my-ingress-nginx-controller
|
|
namespace: ingress-nginx
|
|
spec:
|
|
ports:
|
|
- appProtocol: http
|
|
name: http
|
|
nodePort: 80
|
|
port: 80
|
|
protocol: TCP
|
|
targetPort: http
|
|
- appProtocol: https
|
|
name: https
|
|
nodePort: 443
|
|
port: 443
|
|
protocol: TCP
|
|
targetPort: https
|
|
selector:
|
|
app.kubernetes.io/component: controller
|
|
app.kubernetes.io/instance: ingress-nginx
|
|
app.kubernetes.io/name: ingress-nginx
|
|
type: NodePort
|