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>'
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.