Added troubleshooting section

This commit is contained in:
Ivan Pedrazas
2019-02-02 16:37:25 +00:00
committed by GitHub
parent 842758cdcb
commit 9560ae5dee
+16
View File
@@ -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