Start managing namespaces with Helmfile (#33)

Reviewed-on: https://git.badhouseplants.net/badhouseplants/k8s-cluster-config/pulls/33
This commit is contained in:
Nikolai Rodionov 2023-03-07 17:34:35 +00:00
parent bbefd9ce54
commit fd22ff01cb
3 changed files with 24 additions and 0 deletions

View File

@ -45,3 +45,6 @@ releases:
bases: bases:
- ../environments.yaml - ../environments.yaml
- ../repositories.yaml - ../repositories.yaml
helmfiles:
- namespaces.yaml

View File

@ -0,0 +1,10 @@
---
releases:
- name: namespaces
chart: bedag/raw
version: 2.0.0
values:
- ./values/values.namespaces.yaml
bases:
- ../environments.yaml
- ../repositories.yaml

View File

@ -0,0 +1,11 @@
---
ns:
- name: monitoring
templates:
- |
{{ range .Values.ns }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .name }}
{{ end }}