Commit 6012c69e authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

k8s-configuration: Try to fix error 'The connection to the server was refused'

parent 89edd9fa
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -89,6 +89,15 @@ test:csp-lmc-mid:
  stage: test
  script:
    - cd $BUILD_PATH  
    # todo: need to specify kubectl version (it is on makefile, maybe add this as a target?)
    - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.2/bin/linux/amd64/kubectl
    - chmod +x ./kubectl
    - sudo mv ./kubectl /usr/local/bin/kubectl
    # install helm
    # todo: need to specify helm version (it is on makefile, maybe add this as a target?)
    - curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
    - chmod 700 get_helm.sh
    - ./get_helm.sh
    - export KUBE_NAMESPACE="ci-$CI_COMMIT_SHORT_SHA"
    - make k8s_test
  after_script: