Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit 8e67ec3 Oct 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Change checks for null condition for DRY_RUN param. Instead of using … Jan 4, 2018
.gitignore Commit a gitignore for this repo Jan 2, 2018
Dockerfile update to kubectl v1.9.2 Feb 9, 2018
Makefile makefile supports testing Aug 23, 2016
README.md significant rework documented Aug 23, 2016

README.md

Kubernetes Resource

Installing

resource_types:
- name: kubernetes
  type: docker-image
  source:
    repository: jcderr/concourse-kubernetes-resource
resources:
- name: kubernetes
  type: kubernetes
  source:
    cluster_url: https://hostname:port
    namespace: default
    cluster_ca: _base64 encoded CA pem_
    admin_key: _base64 encoded key pem_
    admin_cert: _base64 encoded certificate_
    resource_type: deployment
    resource_name: some_pod_name
    container_name: some_container

Source Configuration

  • cluster_url: Required. URL to Kubernetes Master API service
  • namespace: Required. Kubernetes namespace.
  • cluster_ca: Optional. Base64 encoded PEM. Required if cluster_url is https.
  • admin_key: Optional. Base64 encoded PEM. Required if cluster_url is https.
  • admin_cert: Optional. Base64 encoded PEM. Required if cluster_url is https.
  • resource_type: Required. Resource type to operate upon (valid values: deployment, replicationcontroller, job).
  • resource_name: Required. Resource name to operate upon.
  • container_name: Optional. For multi-container pods, specify the name of the container being updated. (Default: resource_name)

out: Begins Kubernetes Deploy Process

Applies a kubectl action.

Parameters

  • image_name: Required. Path to file containing docker image name.
  • image_tag: Required. Path to file container docker image tag.

Example

Out

---
resources:
- name: k8s
  type: kubernetes
  source:
    cluster_url: https://kube-master.domain.example
    namespace: alpha
    resource_type: deployment
    resource_name: myapp
    container_name: mycontainer
    cluster_ca: _base64 encoded CA pem_
    admin_key: _base64 encoded key pem_
    admin_cert: _base64 encoded certificate pem_
---
- put: k8s
  params:
    image_name: docker/repository
    image_tag: docker/tag
You can’t perform that action at this time.