pnnl-miscscripts/tenant-namespace-operator

Chart version: 0.1.10
Api version: v2
App version: 0.1.8-1
A Helm chart for Kubernetes
application
Chart Type
Active
Status
Unknown
License
930
Downloads
https://pnnl-miscscripts.github.io/charts
Set me up:
helm repo add center https://repo.chartcenter.io
Install Chart:
helm install tenant-namespace-operator center/pnnl-miscscripts/tenant-namespace-operator
Versions (0)

tenant-namespace-operator

The tenant-namespace-operator chart launches an instance of the tenant-namespace-operator allowing you to quickly deploy tenant-namespaces in a Kubernetes native way.

Install Chart

Apply the CRD’s if not already done so:

kubectl apply -f https://raw.githubusercontent.com/pnnl-miscscripts/miscscripts/master/containers/tenant-namespace-operator/deploy/crds/miscscripts.pnnl.gov_tenantnamespaceflavors_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/pnnl-miscscripts/miscscripts/master/containers/tenant-namespace-operator/deploy/crds/miscscripts.pnnl.gov_tenantnamespaces_crd.yaml

To install the Chart into your Kubernetes cluster (Helm 3 only) :

kubectl create namespace tenant-namespace-operator
helm upgrade --install tenant-namespace-operator --namespace "tenant-namespace-operator" pnnl-miscscripts/tenant-namespace-operator

After installation succeeds, you can get a status of Chart

helm status "tenant-namespace-operator" --namespace "tenant-namespace-operator"

If you want to delete your Chart, use this command:

helm delete "tenant-namespace-operator"

Usage

You can create a cluster wide tenantnamespace flavor like:

apiVersion: miscscripts.pnnl.gov/v1beta1
kind: TenantNamespaceFlavor
metadata:
  name: example
spec: {}

To deploy a tenant namespace named example, you may do so like:

apiVersion: miscscripts.pnnl.gov/v1beta1
kind: TenantNamespace
metadata:
  name: example
spec:
  flavorRef:
    name: example
    kind: TenantNamespaceFlavor
    group: miscscripts.pnnl.gov

When a flavorRef is specified, settings in the flavor are added to the TenantNamespace. The TenantNamespace config overrides the flavor config.

The content of the spec in both TenantNamespaceFlavor and TenantNamespace are values as specified here:

https://gitlab.com/gitlab-org/charts/tenant-namespace/blob/master/values.yaml