mitrakov

Ingress as a service

Nov 28th, 2020
1,676
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This method is not recommended. See "Ingress" instead.
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5.   name: ingress-nginx
  6.   namespace: ingress-nginx
  7.   labels:
  8.     app.kubernetes.io/name: ingress-nginx
  9.     app.kubernetes.io/part-of: ingress-nginx
  10. spec:
  11.   type: NodePort
  12.   ports:
  13.     - name: main-http
  14.       port: 80
  15.       targetPort: 80
  16.       nodePort: 30080
  17.       protocol: TCP
  18.     - name: extra-http
  19.       port: 8080
  20.       targetPort: 8080
  21.       nodePort: 31080
  22.       protocol: TCP
  23.     - name: https
  24.       port: 443
  25.       targetPort: 443
  26.       nodePort: 30443
  27.       protocol: TCP
  28.     - name: winesaps-udp
  29.       port: 33996
  30.       targetPort: 33996
  31.       nodePort: 30996
  32.       protocol: UDP
  33.   selector:
  34.     app.kubernetes.io/name: ingress-nginx
  35.     app.kubernetes.io/part-of: ingress-nginx
  36.  
RAW Paste Data