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

Copper Contributor

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'
0 Replies