Skip to content

Commit

Permalink
Add goldilocks deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
GlacierWalrus committed Apr 4, 2023
1 parent 15a4ed3 commit c57836b
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resources:
limits:
cpu: 50m
memory: 512Mi
requests:
cpu: 50m
memory: 512Mi
23 changes: 23 additions & 0 deletions kubernetes/gitops/base/monitoring/goldilocks/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: goldilocks
spec:
interval: 1h
releaseName: goldilocks
chart:
spec:
chart: goldilocks
version: "6.5.x"
sourceRef:
kind: HelmRepository
name: fairwinds-stable
namespace: "[[ KUSTOMIZE ME! ]]"
values:
resources:
limits:
cpu: 50m
memory: 512Mi
requests:
cpu: 50m
memory: 512Mi
7 changes: 7 additions & 0 deletions kubernetes/gitops/base/monitoring/goldilocks/helmrepo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: fairwinds-stable
spec:
interval: 1h
url: https://charts.fairwinds.com/stable
17 changes: 17 additions & 0 deletions kubernetes/gitops/base/monitoring/goldilocks/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# At present there's no sensible ns for all clusters other than default
namespace: default

resources:
- helmrepo.yaml
- helmrelease.yaml

configMapGenerator:
- files:
- values.yaml=goldilocks-common-values.yaml
name: goldilocks-common-values

configurations:
- kustomizeconfig.yaml
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
4 changes: 4 additions & 0 deletions kubernetes/gitops/base/monitoring/goldilocks/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace:
- kind: HelmRelease
path: spec/chart/spec/sourceRef/namespace
create: true
1 change: 1 addition & 0 deletions kubernetes/gitops/base/monitoring/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kind: Kustomization

resources:
- flux-slack-alerts.yaml
- goldilocks

0 comments on commit c57836b

Please sign in to comment.