代码拉取完成,页面将自动刷新
同步操作将从 cuiliang/thanos-install 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apiVersion: v1
kind: Service
metadata:
labels:
app: thanos-rule
name: thanos-rule
namespace: thanos
spec:
clusterIP: None
ports:
- name: grpc
port: 10901
targetPort: grpc
- name: http
port: 10902
targetPort: http
selector:
app: thanos-rule
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: thanos-rule
name: thanos-rule
namespace: thanos
spec:
replicas: 2
selector:
matchLabels:
app: thanos-rule
serviceName: thanos-rule
podManagementPolicy: Parallel
template:
metadata:
labels:
app: thanos-rule
spec:
containers:
- name: thanos-rule
args:
- rule
- --grpc-address=0.0.0.0:10901
- --http-address=0.0.0.0:10902
- --rule-file=/etc/thanos/rule/*.yaml
- --data-dir=/data/thanos/rule
- --label=rule_replica="$(NAME)"
- --alert.label-drop=rule_replica
- --query=dnssrv+_http._tcp.thanos-query.thanos.svc.cluster.local
- --alertmanagers.url=http://alertmanager-endpoints:30011
env:
- name: NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: harbor.com/prometheus/thanos:v0.30.2
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "4Gi"
cpu: "2"
requests:
memory: "128Mi"
cpu: "100m"
readinessProbe:
failureThreshold: 18
httpGet:
path: /-/ready
port: http
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
livenessProbe:
failureThreshold: 24
httpGet:
path: /-/healthy
port: http
scheme: HTTP
periodSeconds: 5
ports:
- containerPort: 10901
name: grpc
- containerPort: 10902
name: http
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- name: prometheus-rule
mountPath: /etc/thanos/rule
volumes:
- name: prometheus-rule
configMap:
name: prometheus-rule
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。