Forum Discussion
sumanthkannedari
Sep 15, 2022Copper Contributor
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.
- task: Kubernetes@1
displayName: Deploying Manifests into AKS
inputs:
connectionType: 'Azure Resource Manager'
azureSubscriptionEndpoint: 'aks'
azureResourceGroup: 'test-rg'
kubernetesCluster: 'test-aks'
namespace: 'prod'
command: 'apply'
useConfigurationFile: true
configuration: '$(System.DefaultWorkingDirectory)/deployment/webinar-app.yaml'
secretType: 'dockerRegistry'
containerRegistryType: 'Azure Container Registry'
useConfigMapFile: true
configMapFile: '$(System.DefaultWorkingDirectory)/deployment/configmap.yaml'
No RepliesBe the first to reply