Yes I know how to create secret with kubectl, it’s basically what I want to do in an Azure task, but I don’t understand if that is possible and how as I am struggling
The task I linked basically runs kubectl, so the rest of the command and arguments you simply fill as you would with kubectl.
If I try with create as comand it expects -f or -k and I can’t create the secret. if I understood I should pass the secret yaml file
If you want to pass a file you should use apply as the command
Yes that looks the only allowed method as it looks you can’t create secrets directly