Git Product home page Git Product logo

k8s-concepts's Introduction

K8S-Concepts

How to run

Clone repository:

$ git clone https://github.gamesys.co.uk/Filipe-Costa/k8s-concepts

Open the terminal and run the following commands:

$ minikube config set WantVirtualBoxDriverWarning false
$ minikube config set driver virtualbox
$ minikube config set cpus 2
$ minikube config set memory 8192
$ minikube start

Wait for minikube to start then activate ingress addon:

$ minikube addons enable ingress

On the same terminal window run (to allow minikube to run local docker images):

$ eval $(minikube docker-env)

Run the following commands in order:

$ Make build
$ Make create-ns
$ Make create-pv
$ Make chi-svc

Wait a minute or two between each of these services:

$ Make elastic-svc
$ Make fluentd-svc
$ Make kibana-svc

Run the following command:

$ minikube ip

Copy the IP and add it to your /etc/hosts file (don't forget to save it):

$ sudo nano /etc/hosts


<ip> chi.com, logging.com

You can now access the pages through your browser window:

http://chi.com/healthz -> returns OK

http://logging.com/kibana -> returns Kibana dashboard

Setup Index Pattern in Kibana:

  • Management > Stack Management > Index Patterns > Create Index Pattern

  • Add logstash* to the index pattern

Check if Fluentd is aggregating logs correctly:

Todo

  • Understand why Fluentd image doesn't allow to read custom logs stored at /data/logs (probably a lack of permissions?)

References

Deployments

DaemonSet

Service

DNS for Services and Pods

Ingress

Ingress Controllers

Role-based Access Control (RBAC)

k8s-concepts's People

Contributors

filipe-costa avatar

Watchers

James Cloos avatar  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.