Welcome to the Linux Foundation Forum!

LFD259: Lab 7.12 error in yaml

Posts: 6
edited August 2019 in LFD259 Class Forum

When using LoadBalancer type, the nodePort not present thus the kubectl get svc shows the higher port 32000 but without the nodePort you get a random one

  1. - port: 80
  2. protocol: TCP
  3. nodePort: 32000 #<-- Missing line
  4. type: LoadBalancer #<-- Edit this line
  5. selector:
  6. example: second

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 1,000

    Hello,

    Yes, if you do not declare the nodePort you will get a random assignment. Perhaps I am misunderstanding. What is the error you are getting?

    Regards,

  • Hello,

    The nodePort attribute is missing in the code snippet with LoadBalancer.

  • Posts: 1,000

    Ahh. Now I understand. Thank you. I will look into this issue.

    Kind regards,

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training