Skip to content

Commit f5227e4

Browse files
committed
PANDARIA: make charts
1 parent 1272812 commit f5227e4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4828
-0
lines changed
Binary file not shown.
18 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
annotations:
2+
catalog.cattle.io/display-name: Pandaria Alerting Drivers
3+
catalog.cattle.io/kube-version: '>= 1.30.0-0 < 1.33.0-0'
4+
catalog.cattle.io/namespace: cattle-monitoring-system
5+
catalog.cattle.io/permits-os: linux,windows
6+
catalog.cattle.io/rancher-version: '>= 2.11.0-0 < 2.12.0-0'
7+
catalog.cattle.io/release-name: pandaria-alerting-drivers
8+
catalog.cattle.io/type: cluster-tool
9+
apiVersion: v2
10+
description: Pandaria alerting drivers for Prometheus
11+
keywords:
12+
- alert
13+
- prometheus
14+
name: pandaria-alerting-drivers
15+
version: 0.0.9
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# pandaria-alerting-drivers
2+
3+
```
4+
providers:
5+
dingtalk:
6+
type: DINGTALK
7+
webhook_url: <webhook_url>
8+
secret: <optional_secret>
9+
proxy_url: <optional_proxy_url>
10+
msteams:
11+
type: MICROSOFT_TEAMS
12+
webhook_url: <webhook_url>
13+
proxy_url: <optional_proxy_url>
14+
aliyunsms:
15+
type: ALIYUN_SMS
16+
access_key_id: <access_key_id>
17+
access_key_secret: <access_key_secret>
18+
sign_name: <sign_name>
19+
template_code: <template_code>
20+
proxy_url: <optional_proxy_url>
21+
22+
receivers:
23+
test1:
24+
provider: dingtalk
25+
test2:
26+
provider: msteams
27+
test3:
28+
provider: aliyunsms
29+
to:
30+
- <phone_number_1>
31+
- <phone_number_2>
32+
33+
logLevel: Info
34+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rancher_min_version: 2.6.0-rc1
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{/* vim: set filetype=mustache: */}}
2+
{{/*
3+
Expand the name of the chart.
4+
*/}}
5+
6+
{{- define "system_default_registry" -}}
7+
{{- if .Values.global.systemDefaultRegistry -}}
8+
{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
9+
{{- else -}}
10+
{{- "" -}}
11+
{{- end -}}
12+
{{- end -}}
13+
14+
{{- define "linux-node-tolerations" -}}
15+
- key: "cattle.io/os"
16+
value: "linux"
17+
effect: "NoSchedule"
18+
operator: "Equal"
19+
{{- end -}}
20+
21+
{{- define "linux-node-selector" -}}
22+
kubernetes.io/os: linux
23+
{{- end -}}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
chart: {{ .Chart.Name }}
6+
release: {{ .Release.Name }}
7+
name: {{ .Chart.Name }}
8+
spec:
9+
replicas: {{ .Values.replicas }}
10+
selector:
11+
matchLabels:
12+
chart: {{ .Chart.Name }}
13+
release: {{ .Release.Name }}
14+
template:
15+
metadata:
16+
labels:
17+
chart: {{ .Chart.Name }}
18+
release: {{ .Release.Name }}
19+
spec:
20+
serviceAccountName: {{ .Chart.Name }}-serviceaccount
21+
containers:
22+
- name: alerting-drivers
23+
image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}
24+
command:
25+
- /webhook-receiver
26+
livenessProbe:
27+
httpGet:
28+
path: /healthz
29+
port: {{ .Values.port }}
30+
initialDelaySeconds: 5
31+
periodSeconds: 5
32+
readinessProbe:
33+
httpGet:
34+
path: /state
35+
port: {{ .Values.port }}
36+
initialDelaySeconds: 5
37+
periodSeconds: 5
38+
ports:
39+
- containerPort: {{ .Values.port }}
40+
volumeMounts:
41+
- name: config
42+
mountPath: /etc/webhook-receiver
43+
{{- if .Values.resources }}
44+
resources:
45+
{{ toYaml .Values.resources | indent 10 }}
46+
{{- end }}
47+
{{- if .Values.affinity }}
48+
affinity:
49+
{{ toYaml .Values.affinity | indent 8 }}
50+
{{- end }}
51+
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
52+
{{- if .Values.nodeSelector }}
53+
{{ toYaml .Values.nodeSelector | indent 8 }}
54+
{{- end }}
55+
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
56+
{{- if .Values.tolerations }}
57+
{{ toYaml .Values.tolerations | indent 8 }}
58+
{{- end }}
59+
volumes:
60+
- name: config
61+
secret:
62+
secretName: alerting-drivers
63+
defaultMode: 420
64+
items:
65+
- key: config.yaml
66+
path: config.yaml
67+
- key: notification.tmpl
68+
path: tmpl/notification.tmpl
69+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: alerting-drivers
5+
labels:
6+
chart: {{ .Chart.Name }}
7+
release: {{ .Release.Name }}
8+
spec:
9+
type: ClusterIP
10+
selector:
11+
chart: {{ .Chart.Name }}
12+
release: {{ .Release.Name }}
13+
ports:
14+
- name: http
15+
port: {{ .Values.port }}
16+
targetPort: {{ .Values.port }}

0 commit comments

Comments
 (0)