Giter VIP home page Giter VIP logo

kubernetes-resource's Introduction

Kubernetes resource for Concourse.ci


This resource is maintained by Simon Groenborg and David Johannes Christensen

Acknowledgements to jcderr

The first Kubernetes resource was written by jcderr, and we originally tried to use his resource instead of this repository. However it was unmaintained, and was breaking sporadically which caused us to initially fork the repository.

However even with some patching, there was a fundamental problem in the approach to the resource for our use case, which did not allow us to run kubectl commands as needed. Thus this resource was born - however it is heavily inspired by jcderr's work.

Import the resource to your Concourse

Simply add the following under resource_types:

resource_types:
- name: kubernetes
 type: docker-image
 source:
   repository: 
   tag: ''

This gets the resource running.

Source configuration

  • cluster_url Required The url pointing to the Kubernetes Master API service. For example https://192.168.99.100:8443 in minikube.

  • certificate_authority Required w/https cluster The certificate for the cluster. For example ca.crt in minikube.

Format (credentials file):

    certificate_authority: |
      -----BEGIN CERTIFICATE-----
      Whole bunch of text and numbers
      -----END CERTIFICATE-----
  • client_certificate Required w/https cluster The client certificate for admin in the cluster. For example apiserver.crt in minikube.

Format (credentials file):

    client_certificate: |
      -----BEGIN CERTIFICATE-----
      Whole bunch of text and numbers
      -----END CERTIFICATE-----
  • client_key Required w/https cluster The certificate for the cluster. For example apiserver.key in minikube.

Format (credentials file):

    client_key: |
      -----BEGIN RSA PRIVATE KEY-----
      Whole bunch of text and numbers
      -----END RSA PRIVATE KEY-----
  • namespace Optional Only execute on the specified namespace. Technically this can be specified in the out behaviour as well, but will then not work on in resource.

Behaviour

check: Runs kubectl against the cluster.

Runs kubectl get pods, to ensure connection to cluster works.

in: Show resources in cluster.

Runs kubectl, and returns all resources in the current namespace (default if no namespace chosen).

out: Update Kubernetes cluster configuration.

Runs kubectl with the given command, thereby changing the cluster.

Parameters

  • command Required The command to execute on the cluster. For example: get pods translates to kubectl get pods (in default namespace).

Work in progress. . .

kubernetes-resource's People

Contributors

groenborg avatar sharor avatar

Stargazers

 avatar

Watchers

 avatar

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.