frodenas/k8s-resource

By frodenas

Updated over 5 years ago

Concourse resource for interacting with Kubernetes (k8s)

Image
1

1M+

Kubernetes Resource

A Concourse resource to apply Kubernetes (k8s) resources.

Source Configuration

FieldRequiredTypeDescription
urlYStringKubernetes URL
namespaceNStringKubernetes Namespace, required unless set in params
usernameNStringKubernetes Username
passwordNStringKubernetes Password
tokenNStringKubernetes Token
debugNBooleanShow detailed execution
recordNBooleanKubectl --record option (defaults to false)
skip_tls_verifyNBooleanSkip TLS certificates verification (defaults to false)
cert_dataNStringTLS certificate PEM-encoded bytes
key_dataNStringTLS certificate key PEM-encoded bytes
ca_dataNStringTLS 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

FieldRequiredTypeDescription
spec_pathYStringPath to the resource spec file to apply
namespaceNStringKubernetes 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.

Docker Pull Command

docker pull frodenas/k8s-resource