-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(charts)!: Update Helm release thanos to 15.9.2 #2440
base: main
Are you sure you want to change the base?
Conversation
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -498,8 +719,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +735,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +771,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +835,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +867,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +897,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +909,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +921,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +933,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +945,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +957,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +969,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +981,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
b91cdc0
to
13c2903
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
13c2903
to
6039f33
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r2
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r2
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r2
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r2
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
6039f33
to
61a326b
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
61a326b
to
b41ed74
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
b41ed74
to
6452aed
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
6452aed
to
3bef2c6
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
3bef2c6
to
9a233fb
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
9a233fb
to
49416a1
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
49416a1
to
7fc0e05
Compare
Path: @@ -1,71 +1,266 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query-frontend/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query-frontend
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query-frontend
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 9090
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/receive/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-receive
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: receive
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10902
+ - port: 10901
+ - port: 10901
+ - port: 19291
+ - port: 19291
+---
+# Source: thanos/templates/ruler/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-ruler
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: ruler
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +270,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +279,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +295,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +304,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +319,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +328,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +344,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +353,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +374,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +383,32 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +417,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +499,32 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +533,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +621,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +654,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +691,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +720,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +736,34 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +772,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.34.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +836,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 1024Mi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -625,11 +868,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +898,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +910,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +922,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +934,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +946,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +958,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +970,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +982,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
a11e2ea
to
b3c94c9
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
b3c94c9
to
56f90ba
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r3
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
56f90ba
to
9db1fe6
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r5
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r5
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r5
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.36.1-debian-12-r5
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
9db1fe6
to
fa93d1b
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
fa93d1b
to
f50c9a5
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.0-debian-12-r1
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
f50c9a5
to
eaeb810
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
eaeb810
to
b9a8851
Compare
Path: @@ -1,71 +1,236 @@
+# Source: thanos/templates/bucketweb/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-bucketweb
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 8080
+ - port: 8080
+---
+# Source: thanos/templates/compactor/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-compactor
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: compactor
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+---
+# Source: thanos/templates/query/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-query
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 10901
+ - port: 9090
+ - port: 10901
+---
+# Source: thanos/templates/storegateway/networkpolicy.yaml
+kind: NetworkPolicy
+apiVersion: networking.k8s.io/v1
+metadata:
+ name: thanos-storegateway
+ namespace: "default"
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ podSelector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+ policyTypes:
+ - Ingress
+ - Egress
+ egress:
+ - {}
+ ingress:
+ - ports:
+ - port: 10902
+ - port: 9090
+ - port: 10901
+ - port: 10901
+---
+# Source: thanos/templates/bucketweb/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-bucketweb
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: bucketweb
+---
+# Source: thanos/templates/query/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-query
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: query
+---
+# Source: thanos/templates/storegateway/pdb.yaml
+apiVersion: policy/v1
+kind: PodDisruptionBudget
+metadata:
+ name: thanos-storegateway
+ namespace: default
+ labels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+spec:
+ maxUnavailable: 1
+ selector:
+ matchLabels:
+ app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
+ app.kubernetes.io/component: storegateway
+---
# Source: thanos/templates/bucketweb/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/compactor/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/query/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/storegateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
-automountServiceAccountToken: true
+automountServiceAccountToken: false
---
# Source: thanos/templates/bucketweb/service.yaml
apiVersion: v1
kind: Service
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -75,8 +240,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
---
# Source: thanos/templates/compactor/service.yaml
@@ -84,13 +249,13 @@
kind: Service
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -100,8 +265,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
---
# Source: thanos/templates/query/service-grpc.yaml
@@ -109,13 +274,12 @@
kind: Service
metadata:
name: thanos-query-grpc
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
spec:
type: ClusterIP
ports:
@@ -125,8 +289,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/query/service.yaml
@@ -134,13 +298,13 @@
kind: Service
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- annotations:
+ prometheus-operator/monitor: 'true'
spec:
type: ClusterIP
ports:
@@ -150,8 +314,8 @@
name: http
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
---
# Source: thanos/templates/storegateway/service.yaml
@@ -159,14 +323,13 @@
kind: Service
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
prometheus-operator/monitor: 'true'
- annotations:
spec:
type: ClusterIP
ports:
@@ -181,8 +344,8 @@
name: grpc
nodePort: null
selector:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
---
# Source: thanos/templates/bucketweb/deployment.yaml
@@ -190,32 +353,31 @@
kind: Deployment
metadata:
name: thanos-bucketweb
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-bucketweb
+ serviceAccountName: thanos-bucketweb
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -224,25 +386,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: bucketweb
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- tools
- bucket
@@ -297,32 +468,31 @@
kind: Deployment
metadata:
name: thanos-compactor
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: Recreate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-compactor
+ serviceAccountName: thanos-compactor
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -331,25 +501,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: compactor
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- compact
- --log.level=info
@@ -410,30 +589,31 @@
kind: Deployment
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
replicas: 1
+ revisionHistoryLimit: 10
strategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
- serviceAccount: thanos-query
+ serviceAccountName: thanos-query
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -442,25 +622,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: query
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- query
- --log.level=info
@@ -470,6 +659,7 @@
- --query.replica-label=replica
- --endpoint=dnssrv+_grpc._tcp.prometheus-thanos-discovery.monitoring.svc.cluster.local
- --endpoint=dnssrv+_grpc._tcp.thanos-storegateway.default.svc.cluster.local
+ - --alert.query-url=http://thanos-query.default.svc.cluster.local:9090
ports:
- name: http
containerPort: 10902
@@ -498,8 +688,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
volumes:
---
@@ -508,34 +704,33 @@
kind: StatefulSet
metadata:
name: thanos-storegateway
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
replicas: 1
+ revisionHistoryLimit: 10
podManagementPolicy: OrderedReady
serviceName: thanos-storegateway-headless
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
template:
metadata:
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- annotations:
- checksum/objstore-configuration: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec:
- serviceAccount: thanos-storegateway
+ serviceAccountName: thanos-storegateway
automountServiceAccountToken: true
affinity:
podAffinity:
@@ -544,25 +739,34 @@
- podAffinityTerm:
labelSelector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
- namespaces:
- - "default"
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
securityContext:
fsGroup: 1001
+ fsGroupChangePolicy: Always
+ supplementalGroups: []
+ sysctls: []
containers:
- name: storegateway
- image: public.ecr.aws/bitnami/thanos:0.28.1-scratch-r0
+ image: public.ecr.aws/bitnami/thanos:0.37.1-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ privileged: false
readOnlyRootFilesystem: true
+ runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
+ seLinuxOptions: {}
+ seccompProfile:
+ type: RuntimeDefault
args:
- store
- --log.level=info
@@ -599,8 +803,14 @@
port: http
scheme: HTTP
resources:
- limits: {}
- requests: {}
+ limits:
+ cpu: 150m
+ ephemeral-storage: 2Gi
+ memory: 192Mi
+ requests:
+ cpu: 100m
+ ephemeral-storage: 50Mi
+ memory: 128Mi
volumeMounts:
- name: objstore-config
mountPath: /conf
@@ -611,7 +821,9 @@
secret:
secretName: thanos-objstore
volumeClaimTemplates:
- - metadata:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
name: data
spec:
accessModes:
@@ -625,11 +837,11 @@
kind: Ingress
metadata:
name: thanos-query
- namespace: "default"
+ namespace: default
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
annotations:
app: thanos
@@ -655,9 +867,9 @@
name: thanos-bucketweb
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
spec:
endpoints:
@@ -667,9 +879,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: bucketweb
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/compactor/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -678,9 +891,9 @@
name: thanos-compactor
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
spec:
endpoints:
@@ -690,9 +903,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: compactor
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/query/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -701,9 +915,9 @@
name: thanos-query
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
spec:
endpoints:
@@ -713,9 +927,10 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: query
+ prometheus-operator/monitor: 'true'
---
# Source: thanos/templates/storegateway/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
@@ -724,9 +939,9 @@
name: thanos-storegateway
namespace: "default"
labels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
app.kubernetes.io/managed-by: Helm
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
spec:
endpoints:
@@ -736,6 +951,7 @@
- "default"
selector:
matchLabels:
- app.kubernetes.io/name: thanos
app.kubernetes.io/instance: thanos
+ app.kubernetes.io/name: thanos
app.kubernetes.io/component: storegateway
+ prometheus-operator/monitor: 'true' |
b9a8851
to
628b2a7
Compare
628b2a7
to
cadd83b
Compare
Signed-off-by: Danny Froberg <[email protected]>
cadd83b
to
56778cb
Compare
This PR contains the following updates:
11.5.5
->15.9.2
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
bitnami/charts (thanos)
v15.9.2
v15.9.1
v15.9.0
v15.8.5
v15.8.4
v15.8.3
v15.8.2
v15.8.1
v15.8.0
v15.7.29
v15.7.28
v15.7.27
v15.7.26
v15.7.25
v15.7.24
v15.7.23
v15.7.22
v15.7.21
v15.7.20
v15.7.19
v15.7.18
v15.7.17
v15.7.16
v15.7.15
v15.7.14
v15.7.13
v15.7.12
v15.7.11
v15.7.10
v15.7.9
v15.7.8
v15.7.7
v15.7.6
v15.7.5
v15.7.4
v15.7.3
v15.7.2
v15.7.1
v15.7.0
v15.6.2
v15.6.1
v15.6.0
v15.5.1
v15.5.0
v15.4.7
v15.4.6
v15.4.4
v15.4.3
v15.4.2
v15.4.1
v15.4.0
v15.3.0
v15.2.2
v15.2.1
v15.2.0
v15.1.3
v15.1.2
v15.1.1
v15.1.0
v15.0.5
v15.0.4
v15.0.3
v15.0.2
v15.0.1
v15.0.0
v14.0.2
v14.0.1
v14.0.0
v13.4.1
v13.4.0
v13.3.0
v13.2.2
v13.2.1
v13.1.0
v13.0.0
v12.23.2
v12.23.1
v12.23.0
v12.22.1
v12.22.0
v12.21.1
v12.21.0
v12.20.4
v12.20.3
v12.20.2
v12.20.1
v12.20.0
v12.19.1
v12.19.0
v12.18.0
v12.17.0
v12.16.2
v12.16.1
v12.16.0
v12.15.0
v12.14.2
v12.14.1
v12.14.0
v12.13.13
v12.13.12
v12.13.11
v12.13.10
v12.13.9
v12.13.8
v12.13.7
v12.13.6
v12.13.5
v12.13.4
v12.13.3
v12.13.2
v12.13.1
v12.13.0
v12.12.1
v12.12.0
v12.11.4
v12.11.3
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.