You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all
I have question about how to add hostAliases to this prometheus.I just want to add for thanos sidecard
can use hostAliases for connect our object storage via hostname .as I try below but see error. pls help me
kubctl apply -f prometheus-prometheus.yaml
error: error validating "prometheus-prometheus.yaml": error validating data: ValidationError(Prometheus.spec): unknown field "hostAliases" in com.coreos.monitoring.v1.Prometheus.spec; if you choose to ignore these errors, turn validation off with --validate=false
`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all
I have question about how to add hostAliases to this prometheus.I just want to add for thanos sidecard
can use hostAliases for connect our object storage via hostname .as I try below but see error. pls help me
manifests/prometheus-prometheus.yaml
`..
spec:
alerting:
alertmanagers:
- name: alertmanager-main
namespace: thanos
port: web
image: quay.io/prometheus/prometheus:v2.20.0
hostAliases:
hostnames:
nodeSelector:
...
kubctl apply -f prometheus-prometheus.yaml
error: error validating "prometheus-prometheus.yaml": error validating data: ValidationError(Prometheus.spec): unknown field "hostAliases" in com.coreos.monitoring.v1.Prometheus.spec; if you choose to ignore these errors, turn validation off with --validate=false
`
Beta Was this translation helpful? Give feedback.
All reactions