title: Make kubectl work in gitlab ci
body: <p>I am searching for a way to use kubectl in gitlab. </p>
  
  <p>So far I have the following script:</p>
  
  <pre><code>deploy_to_dev:
    stage: deploy
    image: docker:dind
    environment:
      name: dev
    script:
      - mkdir -p $HOME/.kube
      - echo $KUBE_CONFIG | base64 -d &gt; $HOME/.kube/config
      - kubectl config view
    only:
      - develop
  </code></pre>
  
  <p>But it says that gitlab does not know kubectl. So can you point me in the right direction. </p>