GithubHelp home page GithubHelp logo

tokynet / concourse-kubectl-resource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmkarthik/concourse-kubectl-resource

0.0 1.0 0.0 21 KB

Kubectl resource for Concourse

License: MIT License

Dockerfile 10.69% Shell 72.20% Batchfile 10.14% PowerShell 6.98%

concourse-kubectl-resource's Introduction

Kubectl resource

Deploys resources to a Kubernetes cluster using "kubectl apply -f" command

SourceConfiguration

  • api_server_uri: Required. The API Server URI of the Kubernetes Cluster.

  • namespace: Required. The namespace to which the files need to be applied.

  • certificate_authority_data: Required. The base64 format of the certificate authority to authenticate to the Kubernetes cluster.

  • token: Required. The token to authenticate to the Kubernetes cluster.

Example

Resource configuration for a Kubernetes cluster

resource_types:
- name: concourse-kubectl-resource-type
  type: docker-image
  source: 
    repository: jmkarthik/concourse-kubectl-resource
    tag: latest

resources:
- name: concourse-kubectl-resource
  type: concourse-kubectl-resource-type
  source:
    api_server_uri: {{server}}
    namespace: {{namespace}}
    certificate_authority_data: {{cad}}
    token: {{token}}

Behavior

check: Not applicable

in: Not applicable

out: Apply file or files in a folder to the Kubernetes cluster configured.

Parameters

  • file: path to the file which needs to be applied using kubectl or path to the folder containing the files to be applied. The file / folder could have been fetched using GET for a Git repository or a S3 bucket

Example

PUT configuration to apply a file

- put: my-ckr
  params:
    file: "resGit/deployment-1.yml"

PUT configuration to apply files in a folder

- put: my-ckr
  params:
    file: "resGit/

Sample Pipeline yml

resource_types:
- name: ckr
  type: docker-image
  source: 
    repository: jmkarthik/concourse-kubectl-resource
    tag: latest

resources:

- name: resGit
  type: git
  source:
    uri: https://github.com/jmkarthik/app-sample.git
    branch: master

- name: my-ckr
  type: ckr
  source:
    api_server_uri: {{server}}
    namespace: {{namespace}}
    certificate_authority_data: {{cad}}
    token: {{token}}

jobs:
- name: my-ckr-job
  plan:
  - get: resGit
  - put: my-ckr
    params:
      file: "resGit/deployment-1.yml"

concourse-kubectl-resource's People

Contributors

jmkarthik 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.