Skip to content

cmmmli/elasticsearch_k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elasticsearch-k8s

prerequirement

  1. Docker for Mac
  2. kubectl

Docker for Macはkubernetesを利用する場合はEdgeを利用します。

use on docker for mac with kubernetes

deploy

$ kubectl config use-context docker-for-desktop
$ cd example
$ kubectl apply -f 00namespace.yaml -f configmap.yaml -f deployment-elasticsearch-full.yaml -f service-full.yaml
$ kubectl create secret generic htpasswd -n elasticsearch --from-file=.htpasswd

access elasticsearch

$ curl -L -XGET 'http://localhost/search' -u 'elastic:changeme'

get information

$ kubectl get **(e.g. deploy, po, rs, svc...) --namespace elasticsearch
$ kubectl describe ** --namespace elasticsearch

See kubectl Reference Documentation for more information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages