Git Product home page Git Product logo

eck's Introduction

Elastic Cloud on Kubernetes

Elastic Cloud on Kubernetes

See detailed instructions from the PDF file, before the blog goes public.

  1. Minikube

If you need to delete your old cluster, run:

minikube delete

Configure your new Minikube cluster:

minikube config set memory 12288
minikube config set cpus 4
minikube start

Launch the Kubernetes UI:

minikube dashboard
  1. GKE

Download and install gcloud, kubectl on your laptop and run the following command using your GKE cluster info.

gcloud config set project elastic-sa
gcloud config set compute/zone us-central1-a
gcloud config set container/cluster aquan
gcloud auth login
gcloud container clusters get-credentials aquan --zone us-central1-a --project elastic-sa
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin [email protected]
kubectl create clusterrolebinding adam.quan-cluster-admin-binding --clusterrole=cluster-admin [email protected]
  1. Deploy Elastic Cloud on Kubernetes (ECK)
kubectl apply -f https://download.elastic.co/downloads/eck/0.9.0/all-in-one.yaml

It should just take a few moment.

  1. Deploy Elasticsearch, Kibana, APM Server
kubectl apply -f apm_es_kibana.yaml

It might take a minute. Check the state of the Elasticsearch, Kibana and APM server pods for all of them to get ready and green.

kubectl get elasticsearch,kibana,apmserver
  1. Access Kibana

Port forward:

echo `kubectl get secret elasticsearch-sample-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode`

Get password of the elastic user, so that you can log into Kibana: http://localhost:5601

kubectl port-forward service/kibana-sample-kb-http 5601
  1. Deploy APM instrumented application

Get APM token:

echo `kubectl get secret apm-server-sample-apm-token -o=jsonpath='{.data.secret-token}' | base64 --decode`

Get APM server URL:

kubectl get services | grep apm

Edit the environment settings of the app.

Deploy the application:

kubectl apply -f shark-node.yaml

Expose as a service:

kubectl expose deployment shark-demo-deployment -n shark

Port forward:

kubectl port-forward service/shark-demo-deployment 8080 -n shark

Access the application: http://localhost:8080

  1. Scale & upgrade

  2. Deploy Metricbeat

eck's People

Contributors

adamquan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.