cancel
Showing results for 
Search instead for 
Did you mean: 
AmeyaSathe
Mission Specialist
Mission Specialist
  • 236 Views

Use '--local' option to set probe without contacting api-server but run locally.

Hello,

We know the following from the book.

The oc set probe command adds or modifies a probe on a deployment. For example, the following command adds a readiness probe to a deployment called front-end:

[user@host ~]$ oc set probe deployment/front-end \
--readiness \ 
--failure-threshold 6 \ 
--period-seconds 10 \ 
--get-url http://:8080/healthz 

How to use the '--local -o yaml' option in an imperative way ?

My attempts failed

 

[student@workstation ~]$ oc set probe deployment frontend --local -o yaml --readiness --get-url=http://:8000/status
error: You must provide one or more resources by argument or filename.
Example resource specifications include:
'-f rsrc.yaml'
'--filename=rsrc.json'
'<resource> <name>'
'<resource>'


[student@workstation ~]$ oc set probe deployment frontend --local --readiness --get-url=http://:8000/status
error: You must provide one or more resources by argument or filename.
Example resource specifications include:
'-f rsrc.yaml'
'--filename=rsrc.json'
'<resource> <name>'
'<resource>'

 

Tags (2)
0 Replies
Join the discussion
You must log in to join this conversation.