bootstrap-project

by joaquinito2051

Helm chartv1.0.2App v0.0.1

A Helm chart for deploying and managing Openshift projects 🦆

About this chart

👻 Bootstrap

Bootstrap chart helps you to create Openshift projects, service accounts and rolebindings.

Installing the chart

To install the chart:

$ helm template -f bootstrap-project/values.yaml bootstrap-project | oc apply -f-

The above command creates objects with default naming convention and configuration. The configuration section lists the parameters that can be configured during installation.

Configuration

The following table lists the configurable parameters of the Bootstrap chart and their default values.

ParameterDescriptionDefault
ci_cd_namespaceProject name to deploy DevEx toolslabs-ci-cd
dev_namespaceProject name for dev environmentlabs-dev
test_namespaceProject name for test environmentlabs-test
namespaces.labs-ci-cd.bindings.nameIDM group name to assign role in ci-cd namespace[labs-devs, labs-admins, dummy-sa]
namespaces.labs-ci-cd.bindings.kindKind to bind to the role in ci-cd namespace[Group, ServiceAccount]
namespaces.labs-ci-cd.bindings.roleThe role to bind to the group in ci-cd namespace[edit, admin]
namespaces.labs-dev.bindings.nameIDM group name to assign role in dev namespace[labs-devs, labs-admins, dummy-sa]
namespaces.labs-dev.bindings.kindKind to bind to the role in dev namespace[Group, ServiceAccount]
namespaces.labs-dev.bindings.roleThe role to bind to the group in dev namespace[edit, admin]
namespaces.labs-test.bindings.nameIDM group name to assign role in test namespace[labs-devs, labs-admins, dummy-sa]
namespaces.labs-test.bindings.kindKind to bind to the role in test namespace[Group, ServiceAccount]
namespaces.labs-test.bindings.roleThe role to bind to the group in test namespace[edit, admin]
namespaces.[*].labelsThe labels applied to the namespace{}
serviceaccounts.nameThe name of the service account that will be createddummy-sa
serviceaccounts.namespaceThe namespace that the service account will be created indummy-sa

These values currently create labs-ci-cd , labs-dev and labs-test namespaces for you to deploy your CICD toolings and applications. If you'd like to change the namespace values, you can create a custom values file and point to it to over ride things:

$ helm template -f bootstrap-project/my-values.yaml bootstrap-project | oc apply -f-

Deploy bootstrap-project with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bootstrap-project 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 chartbootstrap-project is pinned at v1.0.2 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