Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
[GCP Summit 2018] Kubernetes with Nginx and Elasticsearch on GCP
1. Kubernetes
with Nginx and Elasticsearch
on GCP 2018.10.06
HyunJung Byun, JungGeun Lee
YoungHo Choi, ChiHwan Choi, HeeJung Hwang
2. Our Process for Hackathon
Define
user
scenarios
and project
scope
Discussion
for technical
plan on
Hangout
Have our
own
hackathon
within short
time on
offline
Design user scenarios
Draw the flow diagram
How to set docker file
How to set the pod
How to deliver the service
3. Requirements
* Support web service : Node.js, Nginx
* Support Full text search, Autocomplete, Aggregation : Elasticsearch
Scenario
1. Users can search the movie by full text search in web site
2. Users can autocomplete the search keyword
3. Search result should be aggregated by genre
11. Web service Configuration
on Kubernetes
1. Create Dockerfile
2. Create Docker image
docker build -t movie-finder .
12. 3. Set Kubernetest
- Set Service
- Set replica
- Set LoadBalancer and port
Web service Configuration
on Kubernetes
13. Elasticsearch Configuration
on Kubernetes
1. Set Deployment
- Init Containers : setting for elasticsearch
- Set LoadBalancer and port
- Health check for elastic search
kubectl create -f deployment/elasticsearch.yaml
14. Elasticsearch Configuration
on Kubernetes
2. Set Service
- Set port for communication within
Elasticsearch
- Set the nodePort for accessing from outside
kubernetes
3. Create Service
kubectl create -f services/elasticsearch.yaml