From b97f5db1d495c0a08d4b3617dfd50788a37f1ec5 Mon Sep 17 00:00:00 2001 From: "Roberto C. Morano" Date: Wed, 8 May 2024 22:37:58 +0200 Subject: [PATCH] chore(cf-eks-baseline): split into an extra chart: cf-eks-monitoring --- charts/cf-eks-baseline/Chart.yaml | 8 ---- charts/cf-eks-monitoring/.helmignore | 23 ++++++++++++ charts/cf-eks-monitoring/Chart.yaml | 15 ++++++++ charts/cf-eks-monitoring/values.yaml | 55 ++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 charts/cf-eks-monitoring/.helmignore create mode 100644 charts/cf-eks-monitoring/Chart.yaml create mode 100644 charts/cf-eks-monitoring/values.yaml diff --git a/charts/cf-eks-baseline/Chart.yaml b/charts/cf-eks-baseline/Chart.yaml index ed9af11..0bb75e9 100644 --- a/charts/cf-eks-baseline/Chart.yaml +++ b/charts/cf-eks-baseline/Chart.yaml @@ -13,18 +13,10 @@ dependencies: version: 0.9.16 repository: https://charts.external-secrets.io condition: external-secrets.enabled - - name: metrics-server - version: 3.12.1 - repository: https://kubernetes-sigs.github.io/metrics-server/ - condition: metrics-server.enabled - name: aws-ebs-csi-driver version: 2.30.0 repository: https://kubernetes-sigs.github.io/aws-ebs-csi-driver condition: aws-ebs-csi-driver.enabled - - name: kube-prometheus-stack - version: 58.3.1 - repository: https://prometheus-community.github.io/helm-charts - condition: kube-prometheus-stack.enabled - name: nginx version: 16.0.6 repository: https://charts.bitnami.com/bitnami diff --git a/charts/cf-eks-monitoring/.helmignore b/charts/cf-eks-monitoring/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/cf-eks-monitoring/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/cf-eks-monitoring/Chart.yaml b/charts/cf-eks-monitoring/Chart.yaml new file mode 100644 index 0000000..3127e99 --- /dev/null +++ b/charts/cf-eks-monitoring/Chart.yaml @@ -0,0 +1,15 @@ +apiVersion: v2 +name: cf-eks-monitoring +description: A Helm chart for deploying CF's monitoring stack to EKS clusters +type: application +version: 0.0.1 +appVersion: 0.0.1 +dependencies: + - name: metrics-server + version: 3.12.1 + repository: https://kubernetes-sigs.github.io/metrics-server/ + condition: metrics-server.enabled + - name: kube-prometheus-stack + version: 58.3.1 + repository: https://prometheus-community.github.io/helm-charts + condition: kube-prometheus-stack.enabled diff --git a/charts/cf-eks-monitoring/values.yaml b/charts/cf-eks-monitoring/values.yaml new file mode 100644 index 0000000..940451a --- /dev/null +++ b/charts/cf-eks-monitoring/values.yaml @@ -0,0 +1,55 @@ +traefik: + enabled: true + fullnameOverride: "traefik" + deployment: + enabled: true + kind: "DaemonSet" + service: + type: "NodePort" + ports: + web: + exposed: "false" + websecure: + nodePort: 30443 + exposed: "false" + +kube-prometheus-stack: + enabled: true + fullnameOverride: "kube-prometheus-stack" + grafana: + plugins: + - grafana-singlestat-panel + sidecar: + alerts: + enabled: true + datasources: + enabled: true + notifiers: + enabled: true + +nginx: + enabled: true + fullnameOverride: "nginx" + service: + type: ClusterIP + serverBlock: |- + server { + listen 0.0.0.0:8080; + + location / { + return 404 "Not Found"; + } + + } + +external-secrets: + enabled: true + fullnameOverride: "external-secrets" + +metrics-server: + enabled: true + fullnameOverride: "metrics-server" + +aws-ebs-csi-driver: + enabled: true + fullnameOverride: "aws-ebs-csi-driver"