Elasticsearch operator
Deploy operator (once) as a user with cluster admin
kustomize build operator | oc apply -f-
Deploy database instances as any user
kustomize build dev-cluster | oc apply -f-
Use elastic
user and password to login to kibana
oc get secret my-escluster-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo
Use elastic-internal
for internal services to connect
oc get secret my-escluster-es-internal-users -o=jsonpath='{.data.elastic-internal}' | base64 --decode; echo
[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html](Create Index ) in ES via PUT commans
curl -vvvvk -I -u 'elastic-internal:PWDFROMSECRET' 'https://localhost:9200/curriki?pretty'
curl -vvvvk -X PUT -u 'elastic-internal:PWDFROMSECRET' 'https://localhost:9200/curriki' -H 'Content-Type: application/json' -d'{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0
}
},
"mappings": {
"properties": {
"tags": { "type": "text" }
}
}
}'
curl -vvvvk -X POST -u 'elastic-internal:PWDFROMSECRET' 'https://localhost:9200/curriki/tags' -H 'Content-Type: application/json' -d'
{
"tag" : "A00-3"
}'