-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: API Server is needed to deploy #81
Comments
There is an interface in the repository settings UI for managing secrets that isn't described very well in the documentation, but it is fairly simple to use. |
Also worth noting: if you are specifying a prefix that will also apply to your
|
Am facing the same issue as well, using drone v1.0.5. My step is as follows:
I've added the secrets
|
Hmm I've had similar issues. Looks like you are not using a prefix at all so it expects the secret to have an underscore See if that helps? If not, check if that your are setting the permissions on the secret correctly so that all your secrets can be used for the event that you expect. Allowed values are set with the |
I guess I should add this to the docs because it creates a bit of confusion
…On Mon, 28 Jan 2019 at 00:50, Heather Young ***@***.***> wrote:
Hmm I've had similar issues. Looks like you are not using a prefix at all
so it expects the secret to have an underscore _ so your secret should be
literally _API_SECRET. Command to add the secret:
drone secret add --repository [repo] --name _API_SECRET --value https://
[cluster-ip]
See if that helps? If not, check if that your are setting the permissions
on the secret correctly so that all your secrets can be used for the event
that you expect. Allowed values are set with the --event flag added to
the command above --event push --event tag --event deployment --event
pull_request
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACAHGY4b_M51k8_nMEfOsOulF-4NeZiks5vHklOgaJpZM4YoWhT>
.
|
Thanks for your response @one000mph and @ipedrazas! Its working now with the following:
This replaces |
Im getting this error message and I can't figure out why. As far as I can tell, the API Server is specified in my pipeline:
Is there anything obviously wrong with that?
Unrelated, but can I use the DNS address as I'm running Drone in the same cluster as the deployment target e.g.:
api_server: http://kubernetes.default.svc.local
The text was updated successfully, but these errors were encountered: