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
I'm trying use cortex-tool to interact with my grafana loki for upload rules to S3. In the command "cortextool rules load", I use in the --address flag the endpoint of loki-distributed-ruler and when I do it manual it works but I need to do it inside a pod in the comand/arg fields and that's when the error occurs:
group: 'EKS linea base logs', ns: '03_alert_ruler_logs_projname'/api/prom/rules/03_alert_ruler_logs_projname/EKS%20linea%20base%20logstime="2023-11-25T16:19:36Z" level=error msg="error during request to cortex api" error="Get \"https://internal-endpointEKS/loki/api/prom/rules/03_alert_ruler_logs_projname/EKS%20linea%20base%20logs\": tls: failed to verify certificate: x509: certificate signed by unknown authority" method=GET url="https://internal-endpointEKS/loki/api/prom/rules/03_alert_ruler_logs_projname/EKS%20linea%20base%20logs"cortextool: error: load operation unsuccessful, unable to contact cortex api: Get "https://internal-endpointEKS/loki/api/prom/rules/03_alert_ruler_logs_projname/EKS%20linea%20base%20logs": tls: failed to verify certificate: x509: certificate signed by unknown authority, try --help
I tried to use the flags --tls-key-path and --tls-cert-path with a trust certificate but the result is the same.
Is there a way to tell cortex-tool to ignore tls verification or another way to indicate trust certificates?
Thanks!!
The text was updated successfully, but these errors were encountered:
And also specifically for the rules command, I found this in the code:
c.Flag("tls-ca-path", "TLS CA certificate to verify cortex API as part of mTLS, alternatively set CORTEX_TLS_CA_PATH.").
Default("").
Envar("CORTEX_TLS_CA_CERT").
StringVar(&r.ClientConfig.TLS.CAPath)
I assume CORTEX_TLS_CA_CERT could also work for you
Hi everyone,
I'm trying use cortex-tool to interact with my grafana loki for upload rules to S3. In the command "cortextool rules load", I use in the --address flag the endpoint of loki-distributed-ruler and when I do it manual it works but I need to do it inside a pod in the comand/arg fields and that's when the error occurs:
I tried to use the flags --tls-key-path and --tls-cert-path with a trust certificate but the result is the same.
Is there a way to tell cortex-tool to ignore tls verification or another way to indicate trust certificates?
Thanks!!
The text was updated successfully, but these errors were encountered: