Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
/ k8s-resource Public archive

Concourse resource for interacting with Kubernetes (k8s)

License

Notifications You must be signed in to change notification settings

frodenas/k8s-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Resource

A Concourse resource to apply Kubernetes (k8s) resources.

Source Configuration

Field Required Type Description
url Y String Kubernetes URL
namespace N String Kubernetes Namespace, required unless set in params
username N String Kubernetes Username
password N String Kubernetes Password
token N String Kubernetes Token
debug N Boolean Show detailed execution
record N Boolean Kubectl --record option (defaults to false)
skip_tls_verify N Boolean Skip TLS certificates verification (defaults to false)
cert_data N String TLS certificate PEM-encoded bytes
key_data N String TLS certificate key PEM-encoded bytes
ca_data N String TLS root certificate PEM-encoded bytes

Behavior

check: Does nothing.

in: Does nothing.

out: Applies a kubernetes resource.

Given a kubernetes configuration file (both json and yaml formats are accepted), applies it to a kubernetes resource.

Parameters

Field Required Type Description
spec_path Y String Path to the resource spec file to apply
namespace N String Kubernetes Namespace, overwrites source namespace

Example Configuration

Resource Type

resource_types:
  - name: k8s-resource
    type: docker-image
    source:
      repository: frodenas/k8s-resource

Resource

resources:
  - name: my-kubernetes
    type: k8s-resource
    source:
      url: <KUBERNETES URL>
      username: <KUBERNETES USERNAME>
      password: <KUBERNETES PASSWORD>
      namespace: <KUBERNETES NAMESPACE>

Plan

- put: my-kubernetes
  params:
    spec_path: my-pod-spec.yml

Copyright

Copyright (c) 2016 Ferran Rodenas. See LICENSE for details.

About

Concourse resource for interacting with Kubernetes (k8s)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published