Forum Discussion

sumanthkannedari's avatar
sumanthkannedari
Copper Contributor
Sep 15, 2022

How to deploy multiple yaml files on AKS using Azure DevOps pipeline

I am trying out few things in AKS. Right now I am trying to release to AKS through Azure DevOps. But I have a doubt that I have 3 yaml files (ConfigMap, Deployment and Secret) and my release pipeline looks like below. Please help me how to add secret.yaml file in the pipeline. I have all the 3 yaml files in deployment folder and if I use configuration: '$(System.DefaultWorkingDirectory)/deployment' in what order the yaml files will be deployed.

 


            - taskKubernetes@1
              displayNameDeploying Manifests into AKS
              inputs:
                connectionType'Azure Resource Manager'
                azureSubscriptionEndpoint'aks'
                azureResourceGroup'test-rg'
                kubernetesCluster'test-aks'
                namespace'prod'
                command'apply'
                useConfigurationFiletrue
                configuration'$(System.DefaultWorkingDirectory)/deployment/webinar-app.yaml'
                secretType'dockerRegistry'
                containerRegistryType'Azure Container Registry'
                useConfigMapFiletrue
                configMapFile'$(System.DefaultWorkingDirectory)/deployment/configmap.yaml'
No RepliesBe the first to reply

Resources