Giter VIP home page Giter VIP logo

drone-kubectl's People

Contributors

yapcheekian avatar ynilu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drone-kubectl's Issues

Error when using kubectl set image

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

service account privileges required

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

Have more logs

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

Fix example in readme file

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 ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.