bootstrap-project
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.
| Parameter | Description | Default |
|---|---|---|
ci_cd_namespace | Project name to deploy DevEx tools | labs-ci-cd |
dev_namespace | Project name for dev environment | labs-dev |
test_namespace | Project name for test environment | labs-test |
namespaces.labs-ci-cd.bindings.name | IDM group name to assign role in ci-cd namespace | [labs-devs, labs-admins, dummy-sa] |
namespaces.labs-ci-cd.bindings.kind | Kind to bind to the role in ci-cd namespace | [Group, ServiceAccount] |
namespaces.labs-ci-cd.bindings.role | The role to bind to the group in ci-cd namespace | [edit, admin] |
namespaces.labs-dev.bindings.name | IDM group name to assign role in dev namespace | [labs-devs, labs-admins, dummy-sa] |
namespaces.labs-dev.bindings.kind | Kind to bind to the role in dev namespace | [Group, ServiceAccount] |
namespaces.labs-dev.bindings.role | The role to bind to the group in dev namespace | [edit, admin] |
namespaces.labs-test.bindings.name | IDM group name to assign role in test namespace | [labs-devs, labs-admins, dummy-sa] |
namespaces.labs-test.bindings.kind | Kind to bind to the role in test namespace | [Group, ServiceAccount] |
namespaces.labs-test.bindings.role | The role to bind to the group in test namespace | [edit, admin] |
namespaces.[*].labels | The labels applied to the namespace | {} |
serviceaccounts.name | The name of the service account that will be created | dummy-sa |
serviceaccounts.namespace | The namespace that the service account will be created in | dummy-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbootstrap-project is pinned at v1.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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