GithubHelp home page GithubHelp logo

bh90210 / dron8s Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 2.12 MB

Yet another Kubernetes plugin for Drone using dynamic Server Side Apply to achieve --server-side parity for your CI-CD pipelines

Home Page: http://plugins.drone.io/bh90210/dron8s

License: The Unlicense

Dockerfile 5.99% Go 94.01%
ci-cd cluster drone drone-ci drone-plugin k8s kubernetes kubernetes-runner

dron8s's People

Contributors

jeessy2 avatar

Stargazers

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

Watchers

 avatar  avatar

dron8s's Issues

The server could not find the requested resource

Can't make it work :

 kubectl create clusterrolebinding dron8s --clusterrole=edit --serviceaccount=default:default --namespace=default
clusterrolebinding.rbac.authorization.k8s.io/dron8s created

.drone.yml :

- name: deploy_k8s
  image: bh90210/dron8s:latest
  settings:
    yaml: ./config.yaml 

config.yaml :

apiVersion: v1
kind: ConfigMap
metadata:
  name: game-demo
data:
  # property-like keys; each key maps to a simple value
  player_initial_lives: "3"
  ui_properties_file_name: "user-interface.properties"

Result :

In-cluster SSA initiliazing
Applying config # 0
the server could not find the requested resource

Two issues :

  1. the yaml is not applied against the K8S cluster
  2. the job failed but Drone sees it as passed

Note:
Same errors with out of cluster config.

Thx

what is the settings-yaml category

image

Out-of-cluster SSA initiliazing
open ./temPublish/Deploy/backend/deployment.yaml: no such file or directory

my files are created in the previous step ,so how can I find the files?

Restart rollout or update tags of container images

How can we restart a rollout of a particular worklload?
I am building Docker images in a previous of our pipeline.
But it seems that we dont have a possibility to update running pods with new images?

auto tag images

Hi,
How can I used images tags as a variable in my yaml file? so that I can change the image tag every time push a new image to my repository

Support for kustomize

Hi there,

i would like to use Kubernetes kustomize with this plugin, but currently it fails.

My drone config:

- name: static_files_deploy
  image: bh90210/dron8s:latest
  settings:
    yaml: ./k8s/static-files/kustomization.yaml
    kubeconfig:
        from_secret: KUBECONFIG
  when:
    branch:
    - ft/static-files
    event:
      exclude:
      - pull_request

my ./k8s/static-files/kustomization.yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

configMapGenerator:
- name: example-configmap-1
  files:
  - test=./test.html

my test.html:

<!DOCTYPE html>
<html>

<body>
    <h1>Hi!</h1>
</body>

</html>

the error in drone:

latest: Pulling from bh90210/dron8s
Digest: sha256:c3e0f8b3b78a9ec75cc95fb1619d71b522ee592e6df39c564947ccffd0587bdc
Status: Image is up to date for bh90210/dron8s:latest
Out-of-cluster SSA initiliazing
no matches for kind "Kustomization" in version "kustomize.config.k8s.io/v1beta1"
latest: Pulling from bh90210/dron8s
Digest: sha256:c3e0f8b3b78a9ec75cc95fb1619d71b522ee592e6df39c564947ccffd0587bdc
Status: Image is up to date for bh90210/dron8s:latest
Out-of-cluster SSA initiliazing
no matches for kind "Kustomization" in version "kustomize.config.k8s.io/v1beta1"

Thanks!

Document conflict condition

Hi, I'm using dron8s plugin in my drone to update my services in k8s cluster. I found that when I trigger cd on a deployment previously created by kubectl client, a conflict error will occur(like the image below).
image
And it took me some time to find out I have to transfer ownership to dron8s to avoid this error(reading this doc)
However, I can't find the field manager's name in dron8s documentation and have to search it in the drone8s source code.

dron8s/main.go

Line 155 in 03fc616

FieldManager: "dron8s-plugin",

I think it might be better to document it in the project readme, or add a force-conflict flag in the ssa request. It may save a lot of time for people who want to migrate existing deployment to dron8s.

Namespace

how define the namespace of apply?

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.