apiVersion: v1
kind: Service
metadata:
  name: nginx-ingress
  namespace: nginx-ingress
spec:
  type: NodePort 
  ports:
  - port: 80
    targetPort: 80
    protocol: TCP
    name: http
  - port: 443
    targetPort: 443
    protocol: TCP
    name: https
  - port: 8080
    targetPort: 8080
    protocol: TCP
    name: api
  - port: 9113
    targetPort: 9113
    protocol: TCP
    name: exporter
  - port: 3333
    targetPort: 3333
    protocol: TCP
    name: tcp-server
  selector:
    app: nginx-ingress