sinlead / drone-kubectl Goto Github PK
View Code? Open in Web Editor NEWkubectl plugin for Drone CI
Home Page: https://hub.docker.com/r/sinlead/drone-kubectl
License: GNU General Public License v3.0
kubectl plugin for Drone CI
Home Page: https://hub.docker.com/r/sinlead/drone-kubectl
License: GNU General Public License v3.0
Hi, how to pass an Environment to deploy.YAML file?
Hello @ynilu
I would like to use your plugin to update deployment image version
I follow your documentation and run commands line
I facing this problem, do you understand why ?
+ kubectl set image deploy/messaging-app messaging-app=999480714504.dkr.ecr.eu-west-1.amazonaws.com/app:snapshots--dev-a8d890b--5.6.2-SNAPSHOT-messaging-app -n staging
User "default" set.
Cluster "default" set.
Context "default" created.
Switched to context "default".
Error from server (Forbidden): deployments.extensions "messaging-app" is forbidden: User "system:serviceaccount:staging:default" cannot get resource "deployments" in API group "extensions" in the namespace "staging"
Best
How does drone build the springcloud project, can it be built with parameters?
Does this have support for arm devices?
Hi,
How can i create the service account with the right privileges. What sort of privileges would they be?
Can I use the default service account? It seems that drone is using it by default.
My Logs below
1 | + kubectl apply -f deployment.yaml
-- | --
2 | User "default" set.
3 | Cluster "default" set.
4 | Context "default" created.
5 | Switched to context "default".
6 | unable to recognize "deployment.yaml": Unauthorized
7 | unable to recognize "deployment.yaml": Unauthorized
Thanks for the clarifications
Ming
Hello
Is there a way to have more logs ?
Because only one of my builds not works, and all are the same :
+ kubectl set image deployment vor vor=xxx.dkr.ecr.eu-west-1.amazonaws.com/app:snapshots--dev-xxxx-2.0.4-SNAPSHOT-vor -n default
User "default" set.
Cluster "default" set.
Context "default" created.
Switched to context "default".
Error from server (Forbidden): deployments.extensions "vor" is forbidden: User "system:serviceaccount:default:drone-service-account" cannot get resource "deployments" in API group "extensions" in the namespace "default"
- name: Deploy to Kubernates
image: sinlead/drone-kubectl
commands:
- kubectl set image deployment vor vor=12548071xxx.ecr.eu-west-1.amazonaws.com/app:snapshots--dev-xxxx-2.0.4-SNAPSHOT-vor -n default
settings:
kubernetes_server: https://xxxx.eu-west-1.eks.amazonaws.com
kubernetes_cert: LS0tLS1CRUdJTiBDRVJUSXXXXXXX
kubernetes_token: eyJhbGciOiJSUzI1NiIsImtpZXXXXXX
Hi,
Thanks for the useful plugin, just a quick note, from the kubectl
file you're already calling the command kubectl
so no need to have it again in the commands
list ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.