Skip to content

Commit

Permalink
chore: made app-readme more specific regarding values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Oct 13, 2023
1 parent ffd24bb commit 5ac685a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
37 changes: 22 additions & 15 deletions app-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,29 @@ To monitor additional Prometheus targets with `ServiceMonitors` and/or `Alertman

### helm values

Change at least the kube-prometheus-stack selectors to target the namespaces of your project:

```yaml
alertmanagerConfigNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-q8bp8
podMonitorNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-q8bp8
probeNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-q8bp8
ruleNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-q8bp8
serviceMonitorNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-q8bp8
kube-prometheus-stack:
alertmanager:
alertmanagerSpec:
alertmanagerConfigNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-xxxxx
prometheus:
prometheusSpec:
podMonitorNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-xxxxx
probeNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-xxxxx
ruleNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-xxxxx
serviceMonitorNamespaceSelector:
matchLabels:
field.cattle.io/projectId: p-xxxxx
```

</details>
20 changes: 7 additions & 13 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ caas:
nameOverride: ""
# overrides the default namespace for caas related resources
namespaceOverride: ""
#
#
# patch job to set securityContect in Prometheus/Alertmanager statefulset
patchjob:
enabled: false
image:
repository: mtr.devops.telekom.de/caas/kubectl
tag: latest
pullPolicy: IfNotPresent
pullPolicy: IfNotPresent
# minimal permissions for pod
podSecurityContext:
fsGroup: 1000
supplementalGroups:
- 1000
- 1000
# resources for kubectl job
resources:
requests:
Expand All @@ -47,7 +47,7 @@ caas:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
- ALL
privileged: false
runAsUser: 1000
runAsGroup: 1000
Expand Down Expand Up @@ -432,7 +432,7 @@ kube-prometheus-stack:
securityContext:
fsGroup: 2000
supplementalGroups:
- 1000
- 1000
volumes: []
volumeMounts: []
global:
Expand Down Expand Up @@ -554,7 +554,7 @@ kube-prometheus-stack:
runAsUser: 472
runAsGroup: 472
supplementalGroups:
- 472
- 472
sidecar:
image:
repository: mtr.devops.telekom.de/kubeprometheusstack/k8s-sidecar
Expand Down Expand Up @@ -713,12 +713,6 @@ kube-prometheus-stack:
#podMonitorNamespaceSelector:
# matchLabels:
# "field.cattle.io/projectId": *projectId
# probeNamespaceSelector:
# matchExpressions:
# - key: release
# operator: NotIn
# values:
# - rancher-monitoring
#probeNamespaceSelector:
# matchLabels:
# "field.cattle.io/projectId": *projectId
Expand Down Expand Up @@ -756,7 +750,7 @@ kube-prometheus-stack:
securityContext:
fsGroup: 2000
supplementalGroups:
- 1000
- 1000
serviceMonitorSelector:
matchExpressions:
- key: release
Expand Down

0 comments on commit 5ac685a

Please sign in to comment.