cancel
Showing results for 
Search instead for 
Did you mean: 
hayt
Cadet
Cadet
  • 1,481 Views

EX280 - extra resources in projects?

Hi,

In a certain part of the exam you are asked to check for extra resources that may appear in the project when you fix the app. I can't recall if there was anything strange after fixing the apps, so I'm not pretty sure if this might be a trap or not. If there is, how would I find out?

Thank you in advance.

Labels (1)
1 Reply
JustinP
Flight Engineer
Flight Engineer
  • 1,345 Views

If you used 'oc new-app [...]' the resources created are printed to console under:

--> Creating resources

 

So you can check each of those resources after fixing them.

If this is  'oc create -f', then manually check objects in the fixed YAML (assuming the YAML was edited to fix what broke).

There could lots of objects that should have been created/started but weren't because a dependency broke.  Off the top of my head, 'oc new-app' will create:

  1. deploymentconfig / deployment
  2. pod(s)
  3. service(s)

and if the app not only pulls images but builds containers or source, then there'll also be

  1. buildconfig

I'd use 'watch oc status' and/or 'oc get events -w' in a 2nd terminal to watch for the fixed resources to come up.

--
Sr. Solution Architect
0 Kudos
Join the discussion
You must log in to join this conversation.