Skip to content

Creates a service that maps a nodePort to a container port to avoid issues with PAT (Port Address Translation)

Notifications You must be signed in to change notification settings

turnbros/nodeportpassthrough-operator

Repository files navigation

A NodePortPassthrough like this

apiVersion: networking.turnbros.app/v1alpha1
kind: NodePortPassthrough
metadata:
  name: nodeportpassthrough-sample
spec:
  labels:
    my-label: label-value
  annotations:
    turnbros.app/service-annotation: annotation-value
  selector:
    app: service-backend
  ports:
    - name: http
      protocols: ["tcp"]
    - name: https
      protocols: ["tcp"]
    - name: game
      protocols: ["tcp", "udp"]

Should produce a Service like this

apiVersion: v1
kind: Service
metadata:
  name: nodeportpassthrough-sample
  labels:
    foo-label: bar-value
  annotations:
    baz-key: idk-value
spec:
  selector:
    app: service-backend1
  type: NodePort
  ports:
    - name: http-tcp
      protocol: TCP
      nodePort: 30000
      port: 30000
      
    - name: https-tcp
      protocol: TCP
      nodePort: 30001
      port: 30001
      
    - name: game-tcp
      protocol: TCP
      nodePort: 30002
      port: 30002
      
    - name: game-udp
      protocol: UDP
      nodePort: 30002
      port: 30002

About

Creates a service that maps a nodePort to a container port to avoid issues with PAT (Port Address Translation)

Resources

Stars

Watchers

Forks

Packages

No packages published