From 9560ae5deefa29da93d3089ff4bb34e5b64e2187 Mon Sep 17 00:00:00 2001 From: Ivan Pedrazas Date: Sat, 2 Feb 2019 16:37:25 +0000 Subject: [PATCH] Added troubleshooting section --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 22dab05..e87c682 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,22 @@ docker run --rm \ quay.io/ipedrazas/drone-helm ``` +### Troubleshooting + +If you see this problem: `Error: API Server is needed to deploy.` It's usually because you haven't a secret that specifies the `API_SERVER` or the `KUBERNETES_TOKEN`. + +As [one000mph](https://github.com/one000mph) commented in an issue, setting the right `PREFIX` and secrets usually solves the problem. + +``` +export ACTION=add + export REPO=org/myrepo + export PREFIX=prod_ + # export CLUSTER_URI, UNENCODED_TOKEN, BASE64_CERT + drone secret $ACTION --repository $REPO --name "${PREFIX}api_server" --value $CLUSTER_URI + drone secret $ACTION --repository $REPO --name "${PREFIX}kubernetes_token" --value $UNENCODED_TOKEN + drone secret $ACTION --repository $REPO --name "${PREFIX}kubernetes_certificate" --value $BASE64_CERT``` +``` + ### Contribution This repo is setup in a way that if you enable a personal drone server to build your fork it will