Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

zlabjp/concourse-meetup-tokyo-7-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concourse CI/CD Meetup Tokyo #7

This repository contains demo scripts for "Continous Delivery with Concourse and Kubernetes" which talks at Concourse CI/CD Meetup Tokyo #7. On this demo, we use zlabjp/kubernetes-resource, which is a concourse resource for controlling the Kubernetes cluster.

Preparing

  1. Create stage and prod namespaces
  2. Create concourse serviceaccount in both namespaces
  3. Create concourse rolebinding which is bound edit clusterrole in both namespaces
for ns in stage prod; do
  kubectl create ns $ns
  kubectl create sa concourse -n $ns
  kubectl create rolebinding concourse --clusterrole edit --serviceaccount ${ns}:concourse -n $ns
done
  1. Clone https://github.com/zlabjp/kubernetes-scripts
  2. Copy a kubeconfig of concourse serviceaccount of each namespace using create-kubeconfig in kubernetes-scripts repository
  3. Paste a kubeconfig to stage-kubeconfig and prod-kubeconfig in ci/vars.yml
$ git clone https://github.com/zlabjp/kubernetes-scripts.git && cd kubernetes-scripts
$ ./create-kubeconfig concourse --namespace stage
$ ./create-kubeconfig concourse --namespace prod

License

All files in this repository are released under the MIT License, see LICENSE.txt.