knative-build-pipeline

by joaquinito2051

Helm chartv0.0.22

A Helm chart for knative build pipeline

About this chart

knative-build-pipeline helm chart

Setup

First add the Jenkins X chart repository

helm repo add jenkins-x https://storage.googleapis.com/chartmuseum.jenkins-x.io

If it already exists be sure to update the local cache

helm repo update

Basic install

helm upgrade --install knative-build-pipeline jenkins-x/knative-build-pipeline

Authenticated Git requests

If you are working with private git repositories or require secrets to tag or perform remote git actions then you can provide basic authentication which will be automatically mounted into Knative Build Pipline pods. We recommend using a bot user and a personal access token.

GitHub Example:

helm upgrade --install --set auth.git.username=bot-user --set auth.git.password=123456abcdef --set auth.git.url=https://github.com knative-build-pipeline jenkins-x/knative-build-pipeline 

Authenticated Docker registries

If you are pushing images to authenticated docker registries you can provide basic authentication which will be automatically mounted into Knative Build Pipline pods.

DockerHub Example:

helm upgrade --install --set auth.docker.username=fred --set auth.docker.password=flintstone --set auth.docker.url=https://index.docker.io/v1/  knative-build-pipeline jenkins-x/knative-build-pipeline 

Configuration options

ParameterDescriptionDefault
auth.git.usernameOptional basic auth username for git provider``
auth.git.passwordOptional basic auth password for git provider``
auth.git.urlOptional basic auth server for git providerhttps://github.com
auth.docker.usernameOptional basic auth username for docker registry``
auth.docker.passwordOptional basic auth password for docker registry``
auth.docker.urlOptional basic auth server for docker registryhttps://index.docker.io/v1/
image.tagDocker image tagsee latest values.yaml
image.kubeconfigwriterDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/kubeconfigwriter
image.credsinitDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/creds-init
image.gitinitDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/git-init
image.nopDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/nop
image.bashDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/bash
image.gsutilDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/gsutil
image.controllerDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/controller
image.webhookDocker imagegcr.io/knative-nightly/github.com/knative/build-pipeline/cmd/webhook

Deploy knative-build-pipeline with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has knative-build-pipeline on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartknative-build-pipeline is pinned at v0.0.22 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply