Skip to content

Instantly share code, notes, and snippets.

@szamuboy
Last active December 28, 2022 19:04
Show Gist options
  • Save szamuboy/7a13e02cdbedd26a9f927a24b30843f9 to your computer and use it in GitHub Desktop.
Save szamuboy/7a13e02cdbedd26a9f927a24b30843f9 to your computer and use it in GitHub Desktop.
Prometheus-operator HelmChart CRD for k3s
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: prometheus-operator
namespace: kube-system
spec:
chart: stable/prometheus-operator
targetNamespace: prometheus
valuesContent: |-
alertmanager:
alertmanagerSpec:
logFormat: json
defaultRules:
rules:
etcd: false
grafana:
ingress:
enabled: true
hosts:
- grafana.localhost
adminPassword: "#######"
kubeApiServer:
relabelings:
- sourceLabels:
- __meta_kubernetes_namespace
- __meta_kubernetes_service_name
- __meta_kubernetes_endpoint_port_name
action: keep
regex: default;kubernetes;https
- targetLabel: __address__
replacement: kubernetes.default.svc:443
kubeControllerManager:
enabled: false
kubeEtcd:
enabled: false
kubeScheduler:
enabled: false
prometheus:
ingress:
enabled: true
hosts:
- prometheus.localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment