Detected ElasticSearch Version 8
Creating index template jaeger-span
{"error":{"root_cause":[{"type":"parse_exception","reason":"unknown key [template] in the template "}],"type":"parse_exception","reason":"unknown key [template] in the template "},"status":400}
Traceback (most recent call last):
File "/es-rollover/esRollover.py", line 232, in <module>
main()
File "/es-rollover/esRollover.py", line 64, in main
perform_action(action, client, write_alias, read_alias, prefix+'jaeger-span', 'jaeger-span')
File "/es-rollover/esRollover.py", line 79, in perform_action
create_index_template(fix_mapping(mapping, shards, replicas), template_name)
File "/es-rollover/esRollover.py", line 103, in create_index_template
r.raise_for_status()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://elk1-fl.domain.com:9200/_template/jaeger-span
Jaeger config:
apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
name: jaeger
spec:
strategy: production
query:
options:
query:
base-path: /jaeger
collector:
replicas: 3
resources:
limits:
cpu: 100m
memory: 128Mi
storage:
type: elasticsearch
options:
num-shards: 3
num-replicas: 0
server-urls: https://elk1-fl.domain.com:9200
use-aliases: true
# create-index-templates: false
ca: /es/certificates/ca.crt
tags-as-fields:
all: true
esRollover:
conditions: "{\"max_age\": \"1d\"}"
readTTL: 168h
schedule: "55 23 * * *"
secretName: jaeger-secret
volumeMounts:
- name: certificates
mountPath: /es/certificates/
readOnly: true
volumes:
- name: certificates
secret:
secretName: elkcert
Expected behavior
Jaeger should be able to create indexes without any problems
Troubleshoot steps
I have completely removed all Jaeger elements except for the operator itself and existing secrets. I also checked Elasticsearch to see if there are indexes for Jaeger. There were no such indexes. Then I tried to re-create all the resources for Jaeger through the kind: Jaeger
object, but got the same error.
Version (please complete the following information):
Jaeger version: Jaeger operator 1.20
Deployment: Kubernetes