Skip to content

Commit

Permalink
Update more label names
Browse files Browse the repository at this point in the history
Signed-off-by: Dustin Hooten <dustinhooten@gmail.com>
  • Loading branch information
hooten authored and Dustin Hooten committed Mar 26, 2021
1 parent e1f4ef7 commit 2d86382
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
12 changes: 6 additions & 6 deletions Documentation/network-policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
podSelector:
matchLabels:
alertmanager: main
app: alertmanager
app.kubernetes.io/name: alertmanager
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand All @@ -93,7 +93,7 @@ spec:
podSelector:
matchLabels:
alertmanager: main
app: alertmanager
app.kubernetes.io/name: alertmanager

```

Expand All @@ -114,7 +114,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: grafana
app.kubernetes.io/name: grafana
```
#### Prometheus
Expand All @@ -134,7 +134,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: prometheus
app.kubernetes.io/name: prometheus
prometheus: k8s
```
Expand Down Expand Up @@ -166,7 +166,7 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: node-exporter
app.kubernetes.io/name: node-exporter
```
#### Kube-state-metrics
Expand Down Expand Up @@ -197,5 +197,5 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics
```
2 changes: 1 addition & 1 deletion Documentation/user-guides/monitoring-kubernetes-ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
routePrefix: /prometheus
ruleSelector:
matchLabels:
app: prometheus-operator
app.kubernetes.io/name: prometheus-operator
serviceAccountName: prometheus-operator
serviceMonitorSelector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/user-guides/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
spec:
selector:
matchLabels:
app: my-example-prometheus
app.kubernetes.io/name: my-example-prometheus
resources:
requests:
storage: 50Gi
Expand Down
4 changes: 2 additions & 2 deletions example/networkpolicies/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
podSelector:
matchLabels:
alertmanager: main
app: alertmanager
app.kubernetes.io/name: alertmanager
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand All @@ -38,5 +38,5 @@ spec:
podSelector:
matchLabels:
alertmanager: main
app: alertmanager
app.kubernetes.io/name: alertmanager

4 changes: 2 additions & 2 deletions example/networkpolicies/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ spec:
protocol: TCP
podSelector:
matchLabels:
app: prometheus
prometheus: k8s
app.kubernetes.io/name: prometheus
prometheus: k8s
2 changes: 1 addition & 1 deletion example/thanos/prometheus-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: prometheus
app.kubernetes.io/name: prometheus
prometheus: self
name: prometheus-self
namespace: default
Expand Down
4 changes: 2 additions & 2 deletions example/thanos/prometheus-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: prometheus
app.kubernetes.io/name: prometheus
prometheus: self
name: prometheus-self
namespace: default
Expand All @@ -12,4 +12,4 @@ spec:
port: web
selector:
matchLabels:
app: prometheus
app.kubernetes.io/name: prometheus
2 changes: 1 addition & 1 deletion example/thanos/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
role: prometheus-rulefiles
serviceMonitorSelector:
matchLabels:
app: prometheus
app.kubernetes.io/name: prometheus
thanos:
version: v0.11.2
6 changes: 3 additions & 3 deletions example/thanos/query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: thanos-query
app.kubernetes.io/name: thanos-query
name: thanos-query
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: thanos-query
app.kubernetes.io/name: thanos-query
template:
metadata:
labels:
app: thanos-query
app.kubernetes.io/name: thanos-query
spec:
containers:
- args:
Expand Down
4 changes: 2 additions & 2 deletions example/thanos/query-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-query
app.kubernetes.io/name: thanos-query
name: thanos-query
namespace: default
spec:
Expand All @@ -11,4 +11,4 @@ spec:
port: 10902
targetPort: http
selector:
app: thanos-query
app.kubernetes.io/name: thanos-query
2 changes: 1 addition & 1 deletion example/thanos/sidecar-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-sidecar
app.kubernetes.io/name: thanos-sidecar
name: thanos-sidecar
namespace: default
spec:
Expand Down
4 changes: 2 additions & 2 deletions example/thanos/thanos-ruler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-ruler
app.kubernetes.io/name: thanos-ruler
name: thanos-ruler
namespace: default
spec:
Expand All @@ -14,4 +14,4 @@ spec:
port: 10902
targetPort: web
selector:
app: thanos-ruler
app.kubernetes.io/name: thanos-ruler
2 changes: 1 addition & 1 deletion example/thanos/thanos-ruler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ThanosRuler
metadata:
labels:
app: thanos-ruler
app.kubernetes.io/name: thanos-ruler
name: thanos-ruler
namespace: default
spec:
Expand Down
12 changes: 6 additions & 6 deletions jsonnet/thanos/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ local service(name, namespace, labels, selector, ports) = {
},
commonLabels: {
prometheus: 'self',
app: 'prometheus',
'app.kubernetes.io/name': 'prometheus',
},
queryLabels: { app: 'thanos-query' },
sidecarLabels: { app: 'thanos-sidecar' },
rulerLabels: { app: 'thanos-ruler' },
queryLabels: { 'app.kubernetes.io/name': 'thanos-query' },
sidecarLabels: { 'app.kubernetes.io/name': 'thanos-sidecar' },
rulerLabels: { 'app.kubernetes.io/name': 'thanos-ruler' },
},

},
Expand Down Expand Up @@ -66,7 +66,7 @@ local service(name, namespace, labels, selector, ports) = {
replicas: 2,
serviceMonitorSelector: {
matchLabels: {
app: 'prometheus',
'app.kubernetes.io/name': 'prometheus',
},
},
ruleSelector: {
Expand Down Expand Up @@ -145,7 +145,7 @@ local service(name, namespace, labels, selector, ports) = {
],
selector: {
matchLabels: {
app: 'prometheus',
'app.kubernetes.io/name': 'prometheus',
},
},
},
Expand Down

0 comments on commit 2d86382

Please sign in to comment.