Helm chartv0.11.3App 0.1.0

OSC PAAS bootstrap Helm Chart

About this chart

paas

OSC PAAS bootstrap Helm Chart

Maintainers

NameEmailUrl
treydock

Requirements

RepositoryNameVersion
https://osc.github.io/osc-helm-charts/osc-common0.16.0

Usage

Define PAAS namespaces and the groups that can manage the resources:

namespaces:
- name: test
  serviceAccount: test-account
  account: test
  groups: ['testgroup']
  allowedDNS:
    - test.osc.edu
    - test.k8.osc.edu
- name: foo
  serviceAccount: foo-account
  account: foo
  groups: ['bar']
  allowedDNS:
    - foo.osc.edu
    - foo.k8.osc.edu
  managePVC: true
  cpuLimit: '8'
  cpuDefault: '1'
  memoryLimit: '16Gi'
  memoryDefault: '2Gi'
  gpuLimit:
    mig-1g.5gb: '3'
    mig-3g.20gb: '1'
    mig-7g.40gb: '1'
  imagePullSecret:
    username: testuser
    password: password

Namespace properties

KeyDescriptionDefault
nameNamespace namerequired
serviceAccountThe user that will run podsrequired
accountThe charge account for this namespacerequired
groupsThe groups that can manage the namespace's resources[]
usersThe users that can manage the namespace's resources[]
allowedDNSAllowed DNS entries for namespace's Ingress resources[]
managePVCAllows managing PVC in the namespacefalse
collectLogsCollect pod logsfalse
allowNodeportAllow NodePort servicesfalse
cpuLimitThe max CPU this namespace can consume4
cpuDefaultThe default CPU request for this namespace1
memoryLimitThe max memory this namespace can consume8Gi
memoryDefaultThe default memory request for this namespace2Gi
gpuLimitThe max GPUs this namespace can consume0
imagePullSecret.usernameThe username used to access the registryrequired if imagePullSecret defined
imagePullSecret.passwordThe password used to access the registryrequired if imagePullSecret defined

Values

KeyDescriptionDefault
global.imagePullSecret.createDo not create osc-common image pull secretfalse
global.imagePullSecret.nameImage pull secret name for PAAS namespaces"osc-registry"
global.imagePullSecret.registryRegistry for image pull secret added to all PAAS namespaces"docker-registry.osc.edu"
namespacesDefine PAAS namespaces{}
resourcePolicyresource-policy setting"keep"
default.cpuLimitThe default CPU limit for PAAS namespaces"4"
default.cpuThe default CPU request for PAAS namespace pods"1"
default.memoryLimitThe default memory limit for PAAS namespaces"8Gi"
default.memoryThe default memory request for PAAS namespace pods"2Gi"
default.gpuLimitThe default GPU limit for PAAS namespaces{"mig-1g.5gb":"0","mig-3g.20gb":"0","mig-7g.40gb":"0"}
default.managePVCAllow managing PVCsfalse

Deploy paas with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paas 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 chartpaas is pinned at v0.11.3 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