Skip to content

Commit

Permalink
jsonnet/kube-thanos: Adhere to kube app label definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Branczyk <[email protected]>
  • Loading branch information
brancz committed Feb 6, 2020
1 parent ded5e9a commit 445dac1
Show file tree
Hide file tree
Showing 29 changed files with 122 additions and 122 deletions.
12 changes: 6 additions & 6 deletions examples/all/manifests/thanos-bucket-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: thanos-bucket
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-bucket
app.kubernetes.io/version: v0.10.1
name: thanos-bucket
namespace: thanos
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: thanos-bucket
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-bucket
template:
metadata:
labels:
app.kubernetes.io/component: thanos-bucket
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-bucket
app.kubernetes.io/version: v0.10.1
spec:
containers:
Expand Down
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-bucket-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-bucket
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-bucket
app.kubernetes.io/version: v0.10.1
name: thanos-bucket
namespace: thanos
Expand All @@ -14,6 +14,6 @@ spec:
port: 8080
targetPort: http
selector:
app.kubernetes.io/component: thanos-bucket
app.kubernetes.io/component: object-store-bucket-debugging
app.kubernetes.io/instance: thanos-bucket
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-bucket
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-compact-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
app.kubernetes.io/version: v0.10.1
name: thanos-compact
namespace: thanos
Expand All @@ -14,6 +14,6 @@ spec:
port: 10902
targetPort: http
selector:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-compact-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
app.kubernetes.io/version: v0.10.1
name: thanos-compact
namespace: thanos
Expand All @@ -13,6 +13,6 @@ spec:
- port: http
selector:
matchLabels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
12 changes: 6 additions & 6 deletions examples/all/manifests/thanos-compact-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
app.kubernetes.io/version: v0.10.1
name: thanos-compact
namespace: thanos
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
serviceName: thanos-compact
template:
metadata:
labels:
app.kubernetes.io/component: thanos-compact
app.kubernetes.io/component: database-compactor
app.kubernetes.io/instance: thanos-compact
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-compact
app.kubernetes.io/version: v0.10.1
spec:
containers:
Expand Down
14 changes: 7 additions & 7 deletions examples/all/manifests/thanos-query-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
app.kubernetes.io/version: v0.10.1
name: thanos-query
namespace: thanos
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
template:
metadata:
labels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
app.kubernetes.io/version: v0.10.1
spec:
affinity:
Expand All @@ -32,7 +32,7 @@ spec:
- key: app.kubernetes.io/name
operator: In
values:
- thanos
- thanos-query
namespaces:
- thanos
topologyKey: kubernetes.io/hostname
Expand Down
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-query-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
app.kubernetes.io/version: v0.10.1
name: thanos-query
namespace: thanos
Expand All @@ -17,6 +17,6 @@ spec:
port: 9090
targetPort: http
selector:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-query-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
app.kubernetes.io/version: v0.10.1
name: thanos-query
namespace: thanos
Expand All @@ -13,6 +13,6 @@ spec:
- port: http
selector:
matchLabels:
app.kubernetes.io/component: thanos-query
app.kubernetes.io/component: query-layer
app.kubernetes.io/instance: thanos-query
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-query
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-receive-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
app.kubernetes.io/version: v0.10.1
name: thanos-receive
namespace: thanos
Expand All @@ -21,6 +21,6 @@ spec:
port: 19291
targetPort: 19291
selector:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-receive-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
app.kubernetes.io/version: v0.10.1
name: thanos-receive
namespace: thanos
Expand All @@ -13,6 +13,6 @@ spec:
- port: http
selector:
matchLabels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
12 changes: 6 additions & 6 deletions examples/all/manifests/thanos-receive-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
app.kubernetes.io/version: v0.10.1
name: thanos-receive
namespace: thanos
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
serviceName: thanos-receive
template:
metadata:
labels:
app.kubernetes.io/component: thanos-receive
app.kubernetes.io/component: database-write-hashring
app.kubernetes.io/instance: thanos-receive
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-receive
app.kubernetes.io/version: v0.10.1
spec:
affinity:
Expand Down
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-rule-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
app.kubernetes.io/version: v0.10.1
name: thanos-rule
namespace: thanos
Expand All @@ -18,6 +18,6 @@ spec:
port: 10902
targetPort: http
selector:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-rule-serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
app.kubernetes.io/version: v0.10.1
name: thanos-rule
namespace: thanos
Expand All @@ -13,6 +13,6 @@ spec:
- port: http
selector:
matchLabels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
12 changes: 6 additions & 6 deletions examples/all/manifests/thanos-rule-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
app.kubernetes.io/version: v0.10.1
name: thanos-rule
namespace: thanos
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
serviceName: thanos-rule
template:
metadata:
labels:
app.kubernetes.io/component: thanos-rule
app.kubernetes.io/component: rule-evaluation-engine
app.kubernetes.io/instance: thanos-rule
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-rule
app.kubernetes.io/version: v0.10.1
spec:
containers:
Expand Down
8 changes: 4 additions & 4 deletions examples/all/manifests/thanos-store-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: thanos-store
app.kubernetes.io/component: object-store-gateway
app.kubernetes.io/instance: thanos-store
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-store
app.kubernetes.io/version: v0.10.1
name: thanos-store
namespace: thanos
Expand All @@ -18,6 +18,6 @@ spec:
port: 10902
targetPort: 10902
selector:
app.kubernetes.io/component: thanos-store
app.kubernetes.io/component: object-store-gateway
app.kubernetes.io/instance: thanos-store
app.kubernetes.io/name: thanos
app.kubernetes.io/name: thanos-store
Loading

0 comments on commit 445dac1

Please sign in to comment.