代码拉取完成,页面将自动刷新
同步操作将从 cuiliang/thanos-install 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-compact
name: thanos-compact
namespace: thanos
spec:
ports:
- name: http
port: 10902
targetPort: http
selector:
app: thanos-compact
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: thanos-compact
namespace: thanos
labels:
app: thanos-compact
spec:
replicas: 2
selector:
matchLabels:
app: thanos-compact
serviceName: thanos-compact
podManagementPolicy: Parallel
template:
metadata:
labels:
app: thanos-compact
spec:
containers:
- name: thanos-compact
args:
- compact
- --wait
- --objstore.config-file=/etc/thanos/storage.yaml
- --data-dir=/data
- --debug.accept-malformed-index
- --log.level=debug
- --retention.resolution-raw=7d
- --retention.resolution-5m=15d
- --retention.resolution-1h=30d
image: harbor.com/prometheus/thanos:v0.26.0
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "4Gi"
cpu: "2"
requests:
memory: "128Mi"
cpu: "100m"
ports:
- containerPort: 10902
name: http
readinessProbe:
failureThreshold: 20
httpGet:
path: /-/ready
port: http
scheme: HTTP
periodSeconds: 5
livenessProbe:
failureThreshold: 4
httpGet:
path: /-/healthy
port: http
scheme: HTTP
periodSeconds: 30
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: thanos-storage-config
subPath: storage.yaml
mountPath: /etc/thanos/storage.yaml
terminationGracePeriodSeconds: 120
volumes:
- name: thanos-storage-config
secret:
secretName: thanos-objectstorage
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。