Convert a kubectl command to ansible equivalent command

30 views
Skip to first unread message

George Tsoumplekas

unread,
Mar 25, 2021, 5:55:53 AM3/25/21
to Ansible Development

I am using helm operators and I would like to convert the following command

kubectl patch deployment -n my_namespace myoperator-operator --type='json' -p='[ {"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"127.0.0.1/my-operator:myoperator_new_version"} ]'

in an ansible equivalent command. The reason behind this, is that I would like to create a role which will be called from a playbook. How to do this?

My question has been posted in stackoverflow as well

https://stackoverflow.com/questions/66796835/convert-a-kubectl-command-to-ansible-equivalent-command

Thank you in advance

George

Reply all
Reply to author
Forward
0 new messages