mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #45952 from harryge00/update-es-image
Automatic merge from submit-queue (batch tested with PRs 46201, 45952, 45427, 46247, 46062) remove the elasticsearch template **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ``` NONE ``` Loading file-based index template has been disabled since 2.0.0-beta1 version of Elasticsearch. https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_index_api_changes.html#_file_based_index_templates So the `template-k8s-logstash.json` is not longer useful. On the other hand, as https://github.com/kubernetes/kubernetes/issues/25127 indicated, we might better curl the elasticsearch API to load this template.
This commit is contained in:
commit
2718429e4f
@ -37,9 +37,6 @@ RUN set -x \
|
||||
&& tar xf elasticsearch-$ELASTICSEARCH_VERSION.tar.gz -C /elasticsearch --strip-components=1 \
|
||||
&& rm elasticsearch-$ELASTICSEARCH_VERSION.tar.gz
|
||||
|
||||
RUN mkdir -p /elasticsearch/config/templates
|
||||
COPY template-k8s-logstash.json /elasticsearch/config/templates/template-k8s-logstash.json
|
||||
|
||||
COPY config /elasticsearch/config
|
||||
|
||||
COPY run.sh /
|
||||
|
@ -1,35 +0,0 @@
|
||||
{
|
||||
"template" : "logstash-*",
|
||||
"settings" : {
|
||||
"index.refresh_interval" : "5s"
|
||||
},
|
||||
"mappings" : {
|
||||
"_default_" : {
|
||||
"dynamic_templates" : [ {
|
||||
"kubernetes_labels" : {
|
||||
"path_match" : "kubernetes.labels",
|
||||
"mapping" : {
|
||||
"type" : "object",
|
||||
"dynamic_templates" : [ {
|
||||
"match_mapping_type": "string",
|
||||
"path_match" : "*",
|
||||
"mapping" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"kubernetes_field" : {
|
||||
"match_mapping_type": "string",
|
||||
"path_match" : "kubernetes.*",
|
||||
"mapping" : {
|
||||
"type" : "string",
|
||||
"index" : "not_analyzed"
|
||||
}
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user