[ansible-devel] Convert a kubectl command to ansible equivalent command

2021-03-25 Thread George Tsoumplekas
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 ans

[ansible-devel] Rollback in existing deployment fails

2021-03-25 Thread George Tsoumplekas
Hello all I am using ansible and helm operators in order to rollback a current deployment The content of the path is simiral to the following { "spec": { "template": { "spec": { "containers": [ { "name": "patch-demo-ctr-2",

[ansible-devel] How get all the containers of a pod

2021-03-22 Thread George Tsoumplekas
try to get all the containers that are included in a pod using ansible.. I have no experience in ansible and kubernetes. It is the first I have worked with ansible and kubernetes I use an iteration through the pods to get name's of the containers that are include in a pod. I face two problem