Why does the Prometheus Operator deploy the Thanos container with the port [$(POD_IP)]:10901 instead of just :::10901?
1015688170 opened this issue · comments
1015688170 commented
Here is my configuration
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
labels:
prometheus: k8s
name: k8s
namespace: monitoring-thanos
spec:
initContainers:
- name: init-container
image: docker.io/library/prometheus:v2.22.1
command: ["sh"]
args: ["-c","rm -rf /prometheus/wal/" ]
alerting:
alertmanagers:- name: alertmanager-main
namespace: monitoring-thanos
port: web
scrapeInterval: 1m
image: docker.io/library/prometheus:v2.22.1
storage:
volumeClaimTemplate:
spec:
storageClassName: ssd
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 100Gi
nodeSelector:
kubernetes.io/os: linux
podMonitorNamespaceSelector: {}
podMonitorSelector: {}
probeNamespaceSelector: {}
additionalScrapeConfigs:
name: additional-configs
key: prometheus-additional.yaml
probeSelector: {}
replicas: 1
resources:
requests:
memory: 400Mi
limits:
cpu: 2000m
memory: 7000Mi
ruleSelector:
matchLabels:
prometheus: k8s
role: alert-rules
securityContext:
fsGroup: 0
runAsNonRoot: false
runAsUser: 0
serviceAccountName: prometheus-k8s
serviceMonitorNamespaceSelector: {}
serviceMonitorSelector: {}
version: v2.22.1
thanos:
image: docker.io/library/thanos:v0.24.1
resources:
limits:
cpu: 500m
memory: 1000Mi
requests:
cpu: 100m
memory: 500Mi
objectStorageConfig:
key: thanos.yaml
name: thanos-objectstorage
containers:
- name: alertmanager-main
- args:
- --storage.tsdb.min-block-duration=10m
- --storage.tsdb.max-block-duration=10m
- --web.console.templates=/etc/prometheus/consoles
- --web.console.libraries=/etc/prometheus/console_libraries
- --config.file=/etc/prometheus/config_out/prometheus.env.yaml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
- --web.enable-lifecycle
- --storage.tsdb.no-lockfile
- --web.route-prefix=/
- --query.timeout=15m
name: prometheus
After deployment, the address of thanos is --grpc-address=[$(POD_IP)]:10901 --http-address=[$(POD_IP)]:10902
How can I adjust to :::10901 :::10902
github-actions commented
This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.