This commit is contained in:
2024-01-23 16:39:29 +01:00
parent 3ee19b9e3f
commit 99b0ca744e
4 changed files with 22 additions and 55 deletions

View File

@@ -11,6 +11,7 @@ metadata:
app.kubernetes.io/version: "10.2.3"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:

View File

@@ -1,23 +0,0 @@
# Source: grafana/templates/hpa.yaml
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: grafana
namespace: vynil-monitor
labels:
app.kubernetes.io/name: grafana
helm.sh/chart: grafana-7.2.4
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: grafana
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: grafana
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60

View File

@@ -60,15 +60,4 @@ data "kustomization_overlay" "data" {
value: "${var.namespace}"
EOF
}
patches {
target {
kind = "HorizontalPodAutoscaler"
name = "grafana"
}
patch = <<-EOF
- op: replace
path: /apiVersion
value: "autoscaling/v2"
EOF
}
}

View File

@@ -6,15 +6,10 @@ metadata:
name: grafana
description: null
options:
sub-domain:
default: grafana
app-group:
default: monitor
examples:
- grafana
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
- monitor
type: string
volume:
default:
@@ -35,21 +30,21 @@ options:
default: 10Gi
type: string
type: object
app-group:
default: monitor
sub-domain:
default: grafana
examples:
- monitor
- grafana
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
admin_name:
default: grafana_admin
examples:
- grafana_admin
type: string
images:
default:
busybox:
@@ -147,16 +142,21 @@ options:
type: string
type: object
type: object
domain:
default: your-company
examples:
- your-company
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
admin_name:
default: grafana_admin
examples:
- grafana_admin
type: string
domain:
default: your-company
examples:
- your-company
type: string
dependencies: []
providers:
kubernetes: true