You can create a connection from Azure Pipelines to external and remote services for executing tasks in a job. Once you establish a connection, you can view, edit, and add security to the service connection.
https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml
source
How you have created role.yaml file?
Very helpful video sir, but when I tried to create clusterrole and clusterrolebinding for AWS EKS, and when run azure pipeline(in hosted agent) its showing the below error
Error from server(Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment"
Name: "billing-usage", Namespace: "cc-cloud" please kindly help me in this regard…..will be waiting for your reply Thanks.
Thanks for the video. This video helped me to connect China Region AKS with Azure DevOps and deploy through Azure DevOps to China region AKS Cluster
Hello, I have created my cluster using vagrant and have connected the agent pool for that cluster as well. I have also created the service acont for the role and role binding. But i am still getting the below error when running an pipeline…
""Error from server (Forbidden): roles.rbac.authorization.k8s.io "azure-role-test" is forbidden: User "system:serviceaccount:connect-devops:azure-connection-kubernetes" cannot delete resource "roles" in API group "rbac.authorization.k8s.io" in the namespace "connect-devops"
The process '/usr/bin/kubectl' failed with exit code 1""
Can you please help me out with this ??
Your video is very educational and good, but I have a question, if we use the Azure Subscription method to connect k8s to azure DevOps and we have various namespaces in our cluster, how would I proceed forward because I need all the namespace.