add vars
This commit is contained in:
parent
f22b700704
commit
819cddc2c0
7 changed files with 36 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
||||||
# All text files in the text directory
|
# All text files in the text directory
|
||||||
README.md
|
README.md
|
||||||
|
vars/tenant_name/README.md
|
|
@ -1,5 +1,6 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- echo-server/ks.yaml
|
- vars
|
||||||
- repos/ks.yaml
|
- repos/ks.yaml
|
||||||
|
- echo-server/ks.yaml
|
||||||
|
|
21
vars/ks.yaml
Normal file
21
vars/ks.yaml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app vars
|
||||||
|
namespace: ${TENANT_NAMESPACE}
|
||||||
|
spec:
|
||||||
|
targetNamespace: ${TENANT_NAMESPACE}
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
path: ./vars/${TENANT_NAMESPACE}
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: tenant-repos
|
||||||
|
wait: false
|
||||||
|
interval: 10m
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
0
vars/tenant_name/.gitkeep
Normal file
0
vars/tenant_name/.gitkeep
Normal file
5
vars/tenant_name/README.md
Normal file
5
vars/tenant_name/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Settings and Secrets
|
||||||
|
|
||||||
|
Add here settings that depend on the tenant name. This is needed when you include this git ${REPO_NAME} into multiple tenants. You need to ensure this folder is called the same way as the kvant tenant you got.
|
||||||
|
|
||||||
|
You can add Config Maps and secrets to this folder. The secrets should be encripted using SOPS (see [WIKI](https://git.kvant.cloud/phoenix/tenant-tpl/wiki/Tenant--Wiki)). Please do not forget adding your own key to the [.sops.yaml](.sops.yaml) before encrypting your secrets if you want to be able to edit them afterwards.
|
7
vars/tenant_name/cluster-settings.yaml
Normal file
7
vars/tenant_name/cluster-settings.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: cluster-settings
|
||||||
|
data:
|
||||||
|
EXAMPLE: foo
|
Loading…
Add table
Add a link
Reference in a new issue