k8s-namespace-setup#
A Helm chart for setting up Kubernetes namespaces. This chart allows you to configure the following components in a namespace:
External Secrets: Pull in secrets from within or outside the cluster, such as bucket storage credentials or Hugging Face tokens.
Kueue: Set up a local queue for Kueue in the namespace to submit jobs.
Role / Role Binding: Configure permissions for service accounts, like the default service account, to access the Kubernetes API from within a container.
If you are not sure if you need any of these, then this workload is probably not needed for you.
Installation#
To apply a configuration to the active namespace, use:
helm template . -f overrides/rename-secret-names.yaml | kubectl apply -f -
To specify a different namespace:
helm template . -f overrides/rename-secret-names.yaml | kubectl apply -n <namespace> -f -
Control which components to set up using command line parameters:
helm template . --set kueue.setup=true --set role.setup=true | kubectl apply -f -
Configuration#
The following table lists the configurable parameters of the k8s-namespace-setup chart and their default values.
External Secret#
Parameter |
Description |
Default |
|---|---|---|
|
Enable external secret |
|
|
External secret name |
|
|
Secret store name |
|
|
Remote secret name |
|
|
Access key name |
|
|
Secret key name |
|
|
Kubernetes secret name |
|
|
Kubernetes access key name |
|
|
Kubernetes secret key name |
|
Kueue#
Parameter |
Description |
Default |
|---|---|---|
|
Enable kueue |
|
|
Cluster queue name |
|
Roles#
Parameter |
Description |
Default |
|---|---|---|
|
Enable roles setup |
|
|
Role name |
|
|
Role binding name |
|
|
Role rules |
See |