Welcome to the Linux Foundation Forum!

Lab 7.1: Step 3 not quite right

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:

  1. spec:
  2. ports:
  3. - port: 80
  4. selector:
  5. example: second
  6. type: NodePort

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

  1. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
  2. kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 32d
  3. nginx ClusterIP 10.100.222.61 <none> 443/TCP 31d
  4. registry ClusterIP 10.105.170.214 <none> 5000/TCP 31d
  5. 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

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