1 Star 0 Fork 4

idocker/thanos-install

forked from cuiliang/thanos-install 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
thanos-compact.yaml 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
[email protected] 提交于 2022-07-19 20:44 . 新增minIO对象存储配置
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/MengSuiXinFei/thanos-install.git
[email protected]:MengSuiXinFei/thanos-install.git
MengSuiXinFei
thanos-install
thanos-install
master

搜索帮助