I’m trying to perform continuous deployment using drone on a kubernetes cluster using the drone-kubernetes plugin
http://plugins.drone.io/mactynow/drone-kubernetes/
My .drone.yml is as follows:
pipeline:
docker:
image: plugins/docker
dockerfile: Dockerfile
username: ${DOCKER_USER}
password: ${DOCKER_PASSWORD}
email: harshal@mymail.io
repo: harshal/demo-go-app
tags: "${DRONE_BRANCH}.${DRONE_BUILD_NUMBER}"
deploy:
image: quay.io/honestbee/drone-kubernetes
kubernetes_server: https://104.154.70.149
kubernetes_token: <BASE64 encoded token of default service account>
namespace: demo-app
deployment: demo-app-prod
repo: harshals/demo-go-app
container: demo-app-prod
tag: "${DRONE_BRANCH}.${DRONE_BUILD_NUMBER}"
During deployment phase, I 'm getting following error:
WARNING: Using insecure connection to cluster
Cluster "default" set.
Context "default" set.
Switched to context "default".
Deploying to https://104.154.70.149
error: You must be logged in to the server (the server has asked for the client to provide credentials)
Any suggestions on where i’m making a mistake ?