resource
by Das Meta
A Helm chart for Kubernetes to create any type of k8s resources(or CRDs) by passing the resources `apiVersion`, `kind`, `metadata` and `spec` standard resource fields
About this chart
helm chart allows to create one or multiple kubernetes resources(or CRDs) by passing the resources apiVersion, kind, metadata and spec standard resource fields
Install: helm repo add dasmeta https://dasmeta.github.io/helm then helm upgrade --install my-resource dasmeta/resource -f values.yaml. Public values: values.yaml. Examples: examples/resource/. From repo root: helm template test charts/resource -f examples/resource/single.config.yaml.
Key values
| Key | Description | Default / Example |
|---|---|---|
resource | Single Kubernetes resource (apiVersion, kind, metadata, spec/data) | example in values.yaml |
resources | Alias for resource; list or single resource definitions | if set, resource is ignored; see examples/ |
example how resource/resources field value can be in case we have just single object, for more examples check ../../examples/resource folder.
# values.yaml
resource:
apiVersion: v1
kind: ConfigMap
metadata:
name: single-config-map
data:
some-key: single-config-map-content
Deploy resource with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has resource 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 chartresource is pinned at v0.1.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