<p>I'm trying to automate the deployment of Kong in a Kubernetes cluster using a GitLab CI/CD pipeline. I have an agent connected to my cluster and in my pipeline script I'm able run kubectl commands within my cluster. The next step is to run Helm commands but when I do I get &quot;helm: command not found&quot;. Is there an image I can use that allows for kubectl and helm commands? How will I be able to run those Helm commands inside my cluster? Is it possible to have multiple images in a script?</p>
<p>This is my pipeline script in GitLab:</p>
<pre class="lang-yaml prettyprint-override"><code>deploy-job:      
  stage: deploy  
  environment: production
  image:
    name: bitnami/kubectl:latest
    entrypoint: ['']
  script:
    - echo &quot;Deploying Kong application...&quot;
    - kubectl config get-contexts
    - kubectl config use-context test-project/kong:kong-agent
    - kubectl get pods -n kong
    - helm version
    - echo &quot;Kong successfully deployed.&quot;
</code></pre>

lxodowd
<p>You'll run into your current problem a lot.  My recommendation here is to maintain a custom image that both <code>kubectl</code> and <code>helm</code> (and any other tooling you may need).  Also try to explicitly reference a specific tag/version rather than <code>latest</code> -- it goes a long way when you inevitably need to troubleshoot an error that you were &quot;getting today but not yesterday&quot;.</p>
