I am trying to manage deployment of some pods from logic app to make a rest api for others to start and manage some jobs on an already deployed aks cluster. Which is the most standard way to achieve the same?
I am trying to manage deployment of some pods from logic app to make a rest api for others to start and manage some jobs on an already deployed aks cluster. Which is the most standard way to achieve the same?
Welcome to Microsoft Q&A! Thanks for posting the question.
You can leverage the Native HTTP trigger to call any REST API's. Please refer to this Azure REST API through Logic App blog that have the detailed steps how you can call Azure REST API through logic app.
Alternatively you can also explore Azure Resource Manager connector which have different action such as invoke resource operation along with other action. Azure Resource Manager exposes the APIs to manage all of your Azure resources.
Feel free to get back to me if you need any assistance.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.
If i want to deploy some pods in my aks cluster using rest request from logic app, where will my yaml files will be stored which i will add in my post request to be deployed.
example -> https://docs.microsoft.com/en-us/rest/api/aks/managed-clusters/run-command
'''
{
"command": "kubectl apply -f ns.yaml",
"context": "",
"clusterToken": ""
}
'''
Where will ns.yaml be stored?
@ArjitKatare-4879 I have checked with AKS team and they have mentioned that it will be in yaml binding on the cluster. It is like a currently active state that is preserved in the etcd key-value store of your cluster : https://kubernetes.io/docs/concepts/cluster-administration/manage-deployment/#kubectl-apply
15 people are following this question.