Welcome to the Linux Foundation Forum!

Lab 7.1: Step 3 not quite right

bryonbaker
bryonbaker Posts: 28
edited February 2019 in LFD259 Class Forum

A small update to the material for Lab 7.1...

The YAML in step 3 includes NodePort:

spec:
  ports:
  - port: 80
  selector:
    example: second
  type: NodePort

If you specify NodePort a random high port is being created:

NAME         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE
kubernetes   ClusterIP   10.96.0.1        <none>        443/TCP        32d
nginx        ClusterIP   10.100.222.61    <none>        443/TCP        31d
registry     ClusterIP   10.105.170.214   <none>        5000/TCP       31d
secondapp    NodePort    10.97.236.174    <none>        80:32650/TCP   6s 

If you remove type: NodePort form the YAML then it creates the service as per the lab steps.

Comments

  • That's a good catch @bryonbaker! The source YAML file for the secondapp service on Step 3 will be revised in a future course update release.
    Thanks,
    -Chris

Categories

Upcoming Training