elastic https disabled
This commit is contained in:
parent
5e9defbc8c
commit
65c544476b
@ -44,12 +44,14 @@ esJvmOptions: {}
|
|||||||
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
|
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
|
||||||
# syntax here
|
# syntax here
|
||||||
extraEnvs:
|
extraEnvs:
|
||||||
# - name: ES_USERNAME
|
- name: ES_USERNAME
|
||||||
|
value: "elastic"
|
||||||
# valueFrom:
|
# valueFrom:
|
||||||
# secretKeyRef:
|
# secretKeyRef:
|
||||||
# name: elasticsearch-master-credentials
|
# name: elasticsearch-master-credentials
|
||||||
# key: username
|
# key: username
|
||||||
# - name: ES_PASSWORD
|
- name: ES_PASSWORD
|
||||||
|
value: "test"
|
||||||
# valueFrom:
|
# valueFrom:
|
||||||
# secretKeyRef:
|
# secretKeyRef:
|
||||||
# name: elasticsearch-master-credentials
|
# name: elasticsearch-master-credentials
|
||||||
@ -171,284 +173,9 @@ extraVolumeMounts:
|
|||||||
# readOnly: true
|
# readOnly: true
|
||||||
#
|
#
|
||||||
extraContainers: []
|
extraContainers: []
|
||||||
# - name: do-something
|
|
||||||
# image: busybox
|
|
||||||
# command: ['do', 'something']
|
|
||||||
|
|
||||||
|
|
||||||
extraInitContainers: []
|
extraInitContainers: []
|
||||||
# - name: es-index-init
|
|
||||||
# image: alpine/curl:latest
|
|
||||||
# command: ['/bin/sh', '-c']
|
|
||||||
# args:
|
|
||||||
# - |
|
|
||||||
# ES_HOST="elasticsearch-master" # Match your ES service name
|
|
||||||
# ES_PORT="9200"
|
|
||||||
# ELASTIC_PASSWORD=$(cat /etc/elasticsearch-password/password)
|
|
||||||
# curl -u "elastic:${ELASTIC_PASSWORD}" -X PUT "http://${ES_HOST}:${ES_PORT}/chat_v1_idx?pretty" -H 'Content-Type: application/json' -d'
|
|
||||||
# {
|
|
||||||
# "settings": {
|
|
||||||
# "index": {
|
|
||||||
# "number_of_shards": 3,
|
|
||||||
# "number_of_replicas": 1,
|
|
||||||
# "max_ngram_diff": 2
|
|
||||||
# },
|
|
||||||
# "analysis": {
|
|
||||||
# "analyzer": {
|
|
||||||
# "ngram_analyzer": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "tokenizer": "ngram_tokenizer",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# },
|
|
||||||
# "standard_search_analyzer_lowercase": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "tokenizer": "standard",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "tokenizer": {
|
|
||||||
# "ngram_tokenizer": {
|
|
||||||
# "type": "ngram",
|
|
||||||
# "min_gram": 3,
|
|
||||||
# "max_gram": 5,
|
|
||||||
# "token_chars": []
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "normalizer": {
|
|
||||||
# "lowercase_normalizer": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "mappings": {
|
|
||||||
# "properties": {
|
|
||||||
# "id": {
|
|
||||||
# "type": "long"
|
|
||||||
# },
|
|
||||||
# "name": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "name_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "description": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "standard",
|
|
||||||
# "search_analyzer": "standard_search_analyzer_lowercase",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "_class": {
|
|
||||||
# "type": "text",
|
|
||||||
# "fields": {
|
|
||||||
# "keyword": {
|
|
||||||
# "ignore_above": 256.0,
|
|
||||||
# "type": "keyword"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# curl -u "elastic:${ELASTIC_PASSWORD}" -X PUT "http://${ES_HOST}:${ES_PORT}/message_v1_idx?pretty" -H 'Content-Type: application/json' -d'
|
|
||||||
# {
|
|
||||||
# "settings": {
|
|
||||||
# "index": {
|
|
||||||
# "number_of_shards": "3",
|
|
||||||
# "number_of_replicas": "1"
|
|
||||||
# },
|
|
||||||
# "analysis": {
|
|
||||||
# "analyzer": {
|
|
||||||
# "edge_ngram_index_analyzer": {
|
|
||||||
# "tokenizer": "edge_ngram_index_tokenizer",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase",
|
|
||||||
# "apostrophe",
|
|
||||||
# "classic"
|
|
||||||
# ]
|
|
||||||
# },
|
|
||||||
# "message_search_analyzer": {
|
|
||||||
# "tokenizer": "standard"
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "tokenizer": {
|
|
||||||
# "edge_ngram_index_tokenizer": {
|
|
||||||
# "type": "edge_ngram",
|
|
||||||
# "min_gram": 1,
|
|
||||||
# "max_gram": 20,
|
|
||||||
# "token_chars": [
|
|
||||||
# "letter",
|
|
||||||
# "digit"
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "mappings": {
|
|
||||||
# "properties": {
|
|
||||||
# "chatId": {
|
|
||||||
# "type": "long"
|
|
||||||
# },
|
|
||||||
# "messageId": {
|
|
||||||
# "type": "long"
|
|
||||||
# },
|
|
||||||
# "serverTime": {
|
|
||||||
# "type": "long"
|
|
||||||
# },
|
|
||||||
# "_class": {
|
|
||||||
# "type": "text",
|
|
||||||
# "fields": {
|
|
||||||
# "keyword": {
|
|
||||||
# "ignore_above": 256.0,
|
|
||||||
# "type": "keyword"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "id": {
|
|
||||||
# "type": "keyword"
|
|
||||||
# },
|
|
||||||
# "text": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "edge_ngram_index_analyzer",
|
|
||||||
# "search_analyzer": "message_search_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# curl -u "elastic:${ELASTIC_PASSWORD}" -X PUT "http://${ES_HOST}:${ES_PORT}/user_v1_idx?pretty" -H 'Content-Type: application/json' -d'
|
|
||||||
# {
|
|
||||||
# "settings": {
|
|
||||||
# "index": {
|
|
||||||
# "number_of_shards": 3,
|
|
||||||
# "number_of_replicas": 1,
|
|
||||||
# "max_ngram_diff": 2
|
|
||||||
# },
|
|
||||||
# "analysis": {
|
|
||||||
# "analyzer": {
|
|
||||||
# "ngram_analyzer": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "tokenizer": "ngram_tokenizer",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# },
|
|
||||||
# "standard_search_analyzer_lowercase": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "tokenizer": "standard",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "tokenizer": {
|
|
||||||
# "ngram_tokenizer": {
|
|
||||||
# "type": "ngram",
|
|
||||||
# "min_gram": 3,
|
|
||||||
# "max_gram": 5,
|
|
||||||
# "token_chars": []
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "normalizer": {
|
|
||||||
# "lowercase_normalizer": {
|
|
||||||
# "type": "custom",
|
|
||||||
# "filter": [
|
|
||||||
# "lowercase"
|
|
||||||
# ]
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# },
|
|
||||||
# "mappings": {
|
|
||||||
# "properties": {
|
|
||||||
# "id": {
|
|
||||||
# "type": "long"
|
|
||||||
# },
|
|
||||||
# "username": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "username_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "nickname": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "nickname_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "phone": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "phone_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "email": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "email_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "job_title": {
|
|
||||||
# "type": "keyword",
|
|
||||||
# "normalizer": "lowercase_normalizer"
|
|
||||||
# },
|
|
||||||
# "job_title_ngram": {
|
|
||||||
# "type": "text",
|
|
||||||
# "analyzer": "ngram_analyzer",
|
|
||||||
# "search_analyzer": "ngram_analyzer",
|
|
||||||
# "index_options": "offsets",
|
|
||||||
# "term_vector": "with_positions_offsets"
|
|
||||||
# },
|
|
||||||
# "_class": {
|
|
||||||
# "type": "text",
|
|
||||||
# "fields": {
|
|
||||||
# "keyword": {
|
|
||||||
# "ignore_above": 256.0,
|
|
||||||
# "type": "keyword"
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: elasticsearch-password
|
|
||||||
# mountPath: /etc/elasticsearch-password
|
|
||||||
# readOnly: true
|
|
||||||
|
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
# Mount the JSON template
|
# Mount the JSON template
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user