Welcome to the Linux Foundation Forum!

LFD259 - Lab 5.1 simpleapp.yaml

Hello All,

I am unable to find a clean simpleapp deployment YAML file. The YAML file included in the s_05 folder contains edits and is missing details. For example, the image for the container.

Outside of that, this course is excellent in terms of understanding and configuring the primitives and other objects in K8s.

If anyone has run into the same issue, please respond to my post. Happy studying!

MM

Answers

  • chrispokorni
    chrispokorni Posts: 2,518

    Hi @mmiddleton,

    Both manifests edited-simpleapp.yaml from Lab 3 and simpleapp.yaml-with-edits from Lab 5 do in fact include the container image under the pod template.spec block, but you may need to update it with your registry cluster IP.

    Otherwise, one of the takeaways of lab 3.2 is a method to extract your own manifest from the existing deployment (step 16).

    Another method to generate a sample manifest would be to use the --dry-run option, assuming the existence of the $HOME/app1/ subdirectory:

    kubectl create deployment try1 --image=$repo/simpleapp --replicas=6 \
      --dry-run=client -o yaml | tee $HOME/app1/simpleapp.yaml
    

    Regards,
    -Chris

Categories

Upcoming Training