Welcome to the Linux Foundation Forum!

LFD259 Lab 8.2

Options
chunkuoli
chunkuoli Posts: 3
edited October 2023 in LFD259 Class Forum

I made it work for this exercise. This is what I did in the brokendeploy.yaml

  1. change the apiVersion to apps/v1
    you can run 'kubectl api-resources | grep deploy' to see this info.
  2. add 'selector' block in the spec section, where the stanza of 'selector' is same as 'templates', i.e. 'selector' is one of the element of the 'spec':
    selector:
    matchLabels:
    app: broken

Hope this helps. Enjoy!!

Categories

Upcoming Training