Report this

What is the reason for this report?

How to set up bitbucket pipelines docker deployment to kubernetes

Posted on June 25, 2020

Ive been following this tutorial:

https://properdesign.co.uk/redeploying-a-kubernetes-service-on-digitalocean-managed-cluster-in-response-to-a-build-on-bitbucket-pipelines/

Is there anything I need to do in Digital Ocean kubernetes? I created a cluster, etc. But i keep getting this error message:

Error from server (Not Found): deployments.apps “proj1” not found

This is my bitbucket pipelines step

  • step: name: Deploy to Kubernetes image: atlassian/pipelines-kubectl script: - apk --no-cache add curl - curl -sL https://github.com/digitalocean/doctl/releases/download/v1.45.1/doctl-1.45.1-linux-amd64.tar.gz | tar -xzv - mv ./doctl /usr/local/bin - doctl -t $DOCTL_TOKEN k8s cluster kubeconfig show staging-k8s-nyc1 > kubeconfig.yml - kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig.yml set image deployment/${BITBUCKET_REPO_SLUG} ${BITBUCKET_REPO_SLUG}=proj1/staging:latest -v=8

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.