Search code examples
githubkubernetes-deploymentokteto

Okteto ignore certain yaml file


In my GitHub repo I have 2 yaml files:

  • k8s/deploy-all-secrets.yaml
  • k8s/deploy-edge.yaml

I make use of cloud.okteto.com to deploy this deployment-file. But I don't want Okteto to deploy the deploy-all-secrets.yaml file. Is there any way I can exclude this file from Okteto?

I tried using a .stignore file, but this had no result.


Solution

  • According to the documentation https://okteto.com/docs/cloud/okteto-pipeline/. You can place any k8s manifest file that needs to be executed using kubectl apply in this folder. So by simply removing the deploy-all-secrets.yaml from the k8s folder, it won't be executed by Okteto.