-
Notifications
You must be signed in to change notification settings - Fork 358
[Jaeger & Jaeger Operator] Cannot skip SSL verify for existing Elasticsearch #348
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
Cannot skip SSL verify for existing Elasticsearch when setting es.tls.skip-host-verify: true
Got the error message:
{"level":"info","ts":1648557710.6038692,"caller":"flags/admin.go:96","msg":"Admin server started","http.host-port":"[::]:14269","health-status":"unavailable"}
{"level":"fatal","ts":1648557715.7408428,"caller":"./main.go:80","msg":"Failed to init storage factory","error":"failed to create primary Elasticsearch client: health check timeout: Head \"https://admin-cluster-client.default.svc.cluster.local:9200\": x509: certificate is valid for node-0.example.com, localhost, not admin-cluster-client.default.svc.cluster.local: no Elasticsearch node available","stacktrace":"main.main.func1\n\t./main.go:80\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v1.3.0/command.go:856\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v1.3.0/command.go:974\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v1.3.0/command.go:902\nmain.main\n\t./main.go:147\nruntime.main\n\truntime/proc.go:255"}
To Reproduce
My Jaeger values.yaml
provisionDataStore:
cassandra: false
storage:
type: elasticsearch
elasticsearch:
scheme: https
host: admin-cluster-client.default.svc.cluster.local
port: 9200
user: elastic
password: <password>
agent:
enabled: false
query:
cmdlineParams:
es.tls.skip-host-verify: true
collector:
cmdlineParams:
es.tls.skip-host-verify: true
I also tried jaeger-operator but got the same error.
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: simple-prod
spec:
strategy: production
storage:
type: elasticsearch
options:
es:
server-urls: https://admin-cluster-client.default.svc.cluster.local:9200
username: elastic
password: <password>
tls:
skip-host-verify: true
Expected behavior
Skip verifying the SSL
Version (please complete the following information):
- OS: Linux
- Jaeger version: 1.30.0
- Deployment: Kubernetes
Reactions are currently unavailable