Welcome to the Linux Foundation Forum!

LFD259: Lab 7.12 error in yaml

NargiT
NargiT 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

  - port: 80
    protocol: TCP
    nodePort: 32000 #<-- Missing line
    type: LoadBalancer #<-- Edit this line
    selector:
    example: second

Comments

  • Hello,

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

Categories

Upcoming Training