Skip to content

Experimental deployments

Victor Cuadrado Juan edited this page Mar 11, 2020 · 16 revisions

See all options and they defaults once you deploy a cluster in buildfoo/defaults.sh. Or look at all of the {backend,modules}/*/defaults.sh.

Examples

Deploying with Diego

Note: Kind/EKCP usage - Make sure that the host has swapaccounting enabled

You need to disable eirini with: ENABLE_EIRINI=false

$> [...] ENABLE_EIRINI=false make all

Deploy a cluster with Concourse

$> [...] CLUSTER_NAME=concourse make k8s module-extra-concourse

Deploy a cluster with Gitea + Drone

It is a half-automated target, extra steps are required from the browser to conclude the Gitea setup.

First deploy gitea

$> [...] CLUSTER_NAME=ci make k8s module-extra-gitea

Follow the instructions printed in the terminal. You need to conclude the Gitea setup from the browser and create an oauth2 app. Setup also your user, keep a note of the secrets generated and username (Don't forget to setup your ssh key too!)

Deploy drone tweaking the settings accordingly

here shown the required ones to connect successfully to the Gitea instance

$> [...] CLUSTER_NAME=ci DRONE_CLIENT_ID=<oauth_client_id> DRONE_CLIENT_SECRET=<oauth_secret> DRONE_ADMIN=<username> make module-extra-drone

It will deploy the Drone Server + Drone Starlark converter plugin + Drone runner for kubernetes (which will use the kube cluster to execute pipelines) connected to the Gitea instance.

Deploying SCFv3 (with cf-operator)

Setting SCF_OPERATOR=true enables SCFv3 deployment. You can also tweak the SCF_CHART to point to a specific chart, it defaults to latest from v3-develop branch in the SCF repository.

$> [...] SCF_OPERATOR=true make all

Deploying from private Docker registries

You need to specify DOCKER_REGISTRY,DOCKER_ORG,DOCKER_USERNAME and DOCKER_PASSWORD environment variables when running the make target, for example:

$> [...] DOCKER_PASSWORD="xxxx" \
         DOCKER_USERNAME="xxxx" \
         DOCKER_ORG="my-org" \
         DOCKER_REGISTRY="my.private.registry" \
         make all

Deploying Eirini release from CF

$> KIND_APIVERSION=kind.sigs.k8s.io/v1alpha3 \
   KIND_VERSION=v0.4.0 \
   make kind module-experimental-eirini_release

Clone this wiki locally