Skip to content

Commit f6109b0

Browse files
authored
Merge pull request observatorium#33 from squat/update-labels
jsonnet: update 'app' labels
2 parents 30703fe + 675c432 commit f6109b0

13 files changed

+43
-43
lines changed

environments/kubernetes/manifests/thanos-querier-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
labels:
5-
app: thanos-querier
5+
app.kubernetes.io/name: thanos-querier
66
name: thanos-querier
77
namespace: observatorium
88
spec:
99
replicas: 3
1010
selector:
1111
matchLabels:
12-
app: thanos-querier
12+
app.kubernetes.io/name: thanos-querier
1313
template:
1414
metadata:
1515
labels:
16-
app: thanos-querier
16+
app.kubernetes.io/name: thanos-querier
1717
spec:
1818
containers:
1919
- args:

environments/kubernetes/manifests/thanos-querier-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
labels:
5-
app: thanos-querier
5+
app.kubernetes.io/name: thanos-querier
66
name: thanos-querier
77
namespace: observatorium
88
spec:
99
ports:
1010
- name: grpc
1111
port: 10901
12-
targetPort: 10901
12+
targetPort: grpc
1313
- name: http
1414
port: 9090
15-
targetPort: 10902
15+
targetPort: http
1616
selector:
17-
app: thanos-querier
17+
app.kubernetes.io/name: thanos-querier

environments/kubernetes/manifests/thanos-receive-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
labels:
5-
app: thanos-receive
5+
app.kubernetes.io/name: thanos-receive
66
name: thanos-receive
77
namespace: observatorium
88
spec:
@@ -18,5 +18,5 @@ spec:
1818
port: 19291
1919
targetPort: 19291
2020
selector:
21-
app: thanos-receive-default
21+
app.kubernetes.io/name: thanos-receive-default
2222
controller.receive.thanos.io: thanos-receive-controller

environments/kubernetes/manifests/thanos-receive-statefulSet.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
labels:
5-
app: thanos-receive-default
5+
app.kubernetes.io/name: thanos-receive-default
66
controller.receive.thanos.io: thanos-receive-controller
77
name: thanos-receive-default
88
namespace: observatorium
99
spec:
1010
replicas: 3
1111
selector:
1212
matchLabels:
13-
app: thanos-receive-default
13+
app.kubernetes.io/name: thanos-receive-default
1414
controller.receive.thanos.io: thanos-receive-controller
1515
serviceName: thanos-receive
1616
template:
1717
metadata:
1818
labels:
19-
app: thanos-receive-default
19+
app.kubernetes.io/name: thanos-receive-default
2020
controller.receive.thanos.io: thanos-receive-controller
2121
spec:
2222
containers:

environments/kubernetes/manifests/thanos-store-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
labels:
5-
app: thanos-store
5+
app.kubernetes.io/name: thanos-store
66
name: thanos-store
77
namespace: observatorium
88
spec:
@@ -15,4 +15,4 @@ spec:
1515
port: 10902
1616
targetPort: 10902
1717
selector:
18-
app: thanos-store
18+
app.kubernetes.io/name: thanos-store

environments/kubernetes/manifests/thanos-store-statefulSet.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ apiVersion: apps/v1
22
kind: StatefulSet
33
metadata:
44
labels:
5-
app: thanos-store
5+
app.kubernetes.io/name: thanos-store
66
name: thanos-store
77
namespace: observatorium
88
spec:
99
replicas: 3
1010
selector:
1111
matchLabels:
12-
app: thanos-store
12+
app.kubernetes.io/name: thanos-store
1313
serviceName: thanos-store
1414
template:
1515
metadata:
1616
labels:
17-
app: thanos-store
17+
app.kubernetes.io/name: thanos-store
1818
spec:
1919
containers:
2020
- args:

environments/openshift/kube-thanos.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ local list = import 'telemeter/lib/list.libsonnet';
5454
session_secret: std.base64($.thanos.variables.proxyConfig.sessionSecret),
5555
}) +
5656
secret.mixin.metadata.withNamespace(namespace) +
57-
secret.mixin.metadata.withLabels({ app: 'thanos-querier' }),
57+
secret.mixin.metadata.withLabels({ 'app.kubernetes.io/name': 'thanos-querier' }),
5858

5959
service+:
6060
service.mixin.metadata.withNamespace(namespace) +

environments/openshift/manifests/observatorium-template.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ objects:
77
kind: Deployment
88
metadata:
99
labels:
10-
app: thanos-querier
10+
app.kubernetes.io/name: thanos-querier
1111
name: thanos-querier
1212
namespace: ${NAMESPACE}
1313
spec:
1414
replicas: ${{THANOS_QUERIER_REPLICAS}}
1515
selector:
1616
matchLabels:
17-
app: thanos-querier
17+
app.kubernetes.io/name: thanos-querier
1818
template:
1919
metadata:
2020
labels:
21-
app: thanos-querier
21+
app.kubernetes.io/name: thanos-querier
2222
spec:
2323
containers:
2424
- args:
@@ -80,7 +80,7 @@ objects:
8080
kind: Secret
8181
metadata:
8282
labels:
83-
app: thanos-querier
83+
app.kubernetes.io/name: thanos-querier
8484
name: querier-proxy
8585
namespace: ${NAMESPACE}
8686
type: Opaque
@@ -90,22 +90,22 @@ objects:
9090
annotations:
9191
service.alpha.openshift.io/serving-cert-secret-name: querier-tls
9292
labels:
93-
app: thanos-querier
93+
app.kubernetes.io/name: thanos-querier
9494
name: thanos-querier
9595
namespace: ${NAMESPACE}
9696
spec:
9797
ports:
9898
- name: grpc
9999
port: 10901
100-
targetPort: 10901
100+
targetPort: grpc
101101
- name: http
102102
port: 9090
103-
targetPort: 10902
103+
targetPort: http
104104
- name: https
105105
port: 9091
106106
targetPort: https
107107
selector:
108-
app: thanos-querier
108+
app.kubernetes.io/name: thanos-querier
109109
- apiVersion: v1
110110
data:
111111
hashrings.json: |-
@@ -212,7 +212,7 @@ objects:
212212
kind: Service
213213
metadata:
214214
labels:
215-
app: thanos-receive
215+
app.kubernetes.io/name: thanos-receive
216216
name: thanos-receive
217217
namespace: ${NAMESPACE}
218218
spec:
@@ -228,27 +228,27 @@ objects:
228228
port: 19291
229229
targetPort: 19291
230230
selector:
231-
app: thanos-receive-default
231+
app.kubernetes.io/name: thanos-receive-default
232232
controller.receive.thanos.io: thanos-receive-controller
233233
- apiVersion: apps/v1
234234
kind: StatefulSet
235235
metadata:
236236
labels:
237-
app: thanos-receive-default
237+
app.kubernetes.io/name: thanos-receive-default
238238
controller.receive.thanos.io: thanos-receive-controller
239239
name: thanos-receive-default
240240
namespace: ${NAMESPACE}
241241
spec:
242242
replicas: ${{THANOS_RECEIVE_REPLICAS}}
243243
selector:
244244
matchLabels:
245-
app: thanos-receive-default
245+
app.kubernetes.io/name: thanos-receive-default
246246
controller.receive.thanos.io: thanos-receive-controller
247247
serviceName: thanos-receive
248248
template:
249249
metadata:
250250
labels:
251-
app: thanos-receive-default
251+
app.kubernetes.io/name: thanos-receive-default
252252
controller.receive.thanos.io: thanos-receive-controller
253253
spec:
254254
containers:
@@ -313,7 +313,7 @@ objects:
313313
kind: Service
314314
metadata:
315315
labels:
316-
app: thanos-store
316+
app.kubernetes.io/name: thanos-store
317317
name: thanos-store
318318
namespace: ${NAMESPACE}
319319
spec:
@@ -326,24 +326,24 @@ objects:
326326
port: 10902
327327
targetPort: 10902
328328
selector:
329-
app: thanos-store
329+
app.kubernetes.io/name: thanos-store
330330
- apiVersion: apps/v1
331331
kind: StatefulSet
332332
metadata:
333333
labels:
334-
app: thanos-store
334+
app.kubernetes.io/name: thanos-store
335335
name: thanos-store
336336
namespace: ${NAMESPACE}
337337
spec:
338338
replicas: ${{THANOS_STORE_REPLICAS}}
339339
selector:
340340
matchLabels:
341-
app: thanos-store
341+
app.kubernetes.io/name: thanos-store
342342
serviceName: thanos-store
343343
template:
344344
metadata:
345345
labels:
346-
app: thanos-store
346+
app.kubernetes.io/name: thanos-store
347347
spec:
348348
containers:
349349
- args:

environments/sre/servicemonitors.jsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local sm =
1010
},
1111
spec+: {
1212
selector+: {
13-
matchLabels: { app: 'thanos-querier' },
13+
matchLabels: { 'app.kubernetes.io/name': 'thanos-querier' },
1414
},
1515
namespaceSelector: {
1616
matchNames: ['telemeter-stage'],
@@ -26,7 +26,7 @@ local sm =
2626
},
2727
spec+: {
2828
selector+: {
29-
matchLabels: { app: 'thanos-store' },
29+
matchLabels: { 'app.kubernetes.io/name': 'thanos-store' },
3030
},
3131
namespaceSelector: {
3232
matchNames: ['telemeter-stage'],
@@ -42,7 +42,7 @@ local sm =
4242
},
4343
spec+: {
4444
selector+: {
45-
matchLabels: { app: 'thanos-receive' },
45+
matchLabels: { 'app.kubernetes.io/name': 'thanos-receive' },
4646
},
4747
namespaceSelector: {
4848
matchNames: ['telemeter-stage'],

environments/sre/servicemonitors/observatorium-thanos-querier-serviceMonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
- telemeter-stage
1313
selector:
1414
matchLabels:
15-
app: thanos-querier
15+
app.kubernetes.io/name: thanos-querier

environments/sre/servicemonitors/observatorium-thanos-receive-serviceMonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
- telemeter-stage
1313
selector:
1414
matchLabels:
15-
app: thanos-receive
15+
app.kubernetes.io/name: thanos-receive

environments/sre/servicemonitors/observatorium-thanos-store-serviceMonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
- telemeter-stage
1313
selector:
1414
matchLabels:
15-
app: thanos-store
15+
app.kubernetes.io/name: thanos-store

jsonnetfile.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"subdir": "jsonnet/kube-thanos"
99
}
1010
},
11-
"version": "d0d2e5f62a922bc39d29eae4ee386cca4d0f15b6"
11+
"version": "4c9aec2115ddab814aaae08b0c694af0d9b756ec"
1212
},
1313
{
1414
"name": "ksonnet",

0 commit comments

Comments
 (0)