Install VPA and Goldilocks

This commit is contained in:
Nikolai Rodionov 2023-02-07 16:21:35 +01:00 committed by Nikolai Rodionov
parent 3c951be2fc
commit 5780deca8d
6 changed files with 30 additions and 9 deletions

View File

@ -5,3 +5,8 @@ bases:
- ../environments.yaml
- ../repositories.yaml
releases:
- <<: *goldilocks
installed: true
namespace: vpa-system

View File

@ -5,3 +5,7 @@ bases:
- ../environments.yaml
- ../repositories.yaml
releases:
- <<: *goldilocks
installed: true
namespace: vpa-system

2
common/vpa/values.yaml Normal file
View File

@ -0,0 +1,2 @@
updater:
enabled: false

View File

@ -6,6 +6,10 @@ bases:
- repositories.yaml
releases:
- <<: *vpa
installed: true
namespace: vpa-system
createNamespace: true
helmfiles:
- path: {{.Environment.Name }}/helmfile.yaml

View File

@ -1,6 +1,6 @@
---
templates:
crd-management-hook: &crd-management-hook
crd-management-hook:
hooks:
- events: ["preapply"]
showlogs: true
@ -20,12 +20,16 @@ templates:
args:
- -c
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -"
helm-vendor-hook: &helm-vendor-hook
hooks:
- events: ["prepare"]
showlogs: false
command: "sh"
args:
- -c
- "make vendor_chart chart={{ .Release.Chart }} version={{ .Release.Version }}"
vpa: &vpa
name: vpa
chart: fairwinds-stable/vpa
version: 1.6.0
values:
- common/{{ .Release.Name }}/values.yaml
inherit:
template: crd-management-hook
goldilocks: &goldilocks
name: goldilocks
chart: fairwinds-stable/goldilocks
version: 6.5.0

View File

@ -1,2 +1,4 @@
---
repositories:
- name: fairwinds-stable
url: https://charts.fairwinds.com/stable