question

ArjitKatare-4879 avatar image
0 Votes"
ArjitKatare-4879 asked RajatKulshreshtha-5567 commented

Managing and deploying pods on aks cluster using logic app

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?

azure-logic-appsazure-kubernetes-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered RajatKulshreshtha-5567 commented

Hi @ArjitKatare-4879

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.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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?




0 Votes 0 ·

@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

0 Votes 0 ·

WIll look into this. Thanks, will update.

0 Votes 0 ·
Show more comments