-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpanopticon.yaml
More file actions
70 lines (68 loc) · 2 KB
/
panopticon.yaml
File metadata and controls
70 lines (68 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{{ $defaults := dict "registryFQDN" (include "registry.ghcr" $) }}
{{ $vals := dig "panopticon" "values" (dict) .Values.helm.releases }}
{{ $vals = mergeOverwrite $defaults $vals }}
apiVersion: ui.k8s.appscode.com/v1alpha1
kind: Feature
metadata:
name: panopticon
labels:
app.kubernetes.io/part-of: opscenter-observability
spec:
title: Panopticon
description: |
Generic metrics generator from Kubernetes resources. Like kube-state-metrics but generic for all resources.
icons:
- src: https://cdn.appscode.com/k8s/icons/menu/cluster.svg
type: image/svg+xml
featureSet: opscenter-observability
featureBlock: panopticon
recommended: true
requirements:
features:
- license-proxyserver
readinessChecks:
resources:
- group: metrics.appscode.com
version: v1alpha1
kind: MetricsConfiguration
workloads:
- group: apps
version: v1
kind: Deployment
selector:
app.kubernetes.io/name: panopticon
ignoreDifferences:
- jsonPointers:
- /data
kind: Secret
name: panopticon-apiserver-cert
namespace: {{ printf "{{ .Release.Namespace }}" }}
- group: apiregistration.k8s.io
kind: APIService
name: v1alpha1.validators.metrics.appscode.com
jsonPointers:
- /spec/caBundle
- group: apps
kind: Deployment
name: panopticon
namespace: {{ printf "{{ .Release.Namespace }}" }}
jsonPointers:
- /spec/template/metadata/annotations/checksum~1apiregistration.yaml
chart:
name: panopticon
namespace: monitoring
createNamespace: {{ $.Values.helm.createNamespace }}
version: {{ dig "panopticon" "version" "" $.Values.helm.releases }}
sourceRef:
kind: HelmRepository
name: appscode-charts-oci
namespace: {{ .Release.Namespace }}
valuesFrom:
{{- if eq (include "clustermanager.openshift" $) "true" }}
- kind: ConfigMap
name: ace-openshift-scc
valuesKey: panopticon.yaml
{{- end }}
{{- with $vals }}
{{- dict "values" . | toYaml | nindent 2 }}
{{- end }}