<p>Once again, come across the answer right after asking the question.</p>

<p>Needed to look at the <code>Kubectl task</code> and not the <code>Kubernetes manifest task</code>. Particularly the <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/kubernetes?view=azure-devops#commands" rel="nofollow noreferrer">Commands section</a>:</p>

<pre><code>- task: Kubernetes@1
  displayName: kubectl apply using arguments
  inputs:
    connectionType: Azure Resource Manager
    azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
    azureResourceGroup: $(azureResourceGroup)
    kubernetesCluster: $(kubernetesCluster)
    command: apply
    arguments: -f mhc-aks.yaml
</code></pre>

CC BY-SA 4.0
2020-01-30T22:53:08.570Z
2020-01-30T22:53:08.570Z
cheslijones
<p>Basically, I want the pipeline to <code>apply</code> some manifests before deploying images from ACR. No images need to be made. It would just be things like applying the <code>issuer.yaml</code>, <code>ingress.yaml</code>, and maybe a few other things that need to be run before the <code>client</code> and <code>api</code> images are pulled from ACR.</p>

<p>Was looking at the documentation here:</p>

<p><a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/kubernetes-manifest?view=azure-devops#overview" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/kubernetes-manifest?view=azure-devops#overview</a></p>

<p>But just not really seeing what I need.</p>

<p>Suggestions for how to do this?</p>

<azure-devops><azure><azure-pipelines><azure-kubernetes-service>
Applying manifests in Azure DevOps pipeline
cheslijones
# Applying manifests in Azure DevOps pipeline

(Asked by: username_0 on 2020-01-30)

Basically, I want the pipeline to `apply` some manifests before deploying images from ACR. No images need to be made. It would just be things like applying the `issuer.yaml`, `ingress.yaml`, and maybe a few other things that need to be run before the `client` and `api` images are pulled from ACR.

Was looking at the documentation here:

<https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/kubernetes-manifest?view=azure-devops#overview>

But just not really seeing what I need.

Suggestions for how to do this?

**Tags:** azure-devops, azure, azure-pipelines, azure-kubernetes-service


---

## 1 answers

### Answer by username_0 on 2020-01-30. Score: 0 | Accepted answer

Once again, come across the answer right after asking the question.
Needed to look at the Kubectl task and not the Kubernetes manifest task. Particularly the Commands section:
- task: Kubernetes@1
  displayName: kubectl apply using arguments
  inputs:
    connectionType: Azure Resource Manager
    azureSubscriptionEndpoint: $(azureSubscriptionEndpoint)
    azureResourceGroup: $(azureResourceGroup)
    kubernetesCluster: $(kubernetesCluster)
    command: apply
    arguments: -f mhc-aks.yaml


---

