Giter Club home page Giter Club logo

k8s-demo's Introduction

K8s Demo

K8s Demo

๐Ÿ’ก Project's Idea

This project was developed to practice deploying web applications with Kubernetes.

๐Ÿ›  Technologies

During the development of this project, the following techologies were used:

๐Ÿ’ป Project Configuration

First, you must install Docker and minikube on your machine.

๐Ÿ•ธ Kubernetes

Here's a list of useful commands for minikube and the Kubernetes CLI (kubectl):

minikube

$ minikube start --driver docker # Pulls image and creates container for minikube with Docker
$ minikube status # Checks the minikube cluster status
$ minikube ip # Shows current minikube IP address
$ minikube stop # Stops the minikube cluster
$ minikube service webapp-service # Runs the webapp service when minikube IP is not accessible (it's a known issue)

kubectl

$ kubectl get node # Shows current nodes
$ kubectl apply -f <config.yaml> # Applies a configuration (.yaml) file for cluster
$ kubectl get pod # Shows current cluster Pods
$ kubectl get svc # Shows current cluster services
$ kubectl get all # Shows all cluster components
$ kubectl get configmap # Shows cluster config maps
$ kubectl get secret # Shows cluster secrets
$ kubectl describe service <service-name> # Shows details about the service
$ kubectl describe pod <pod-name> # Shows details about the pod
$ kubectl logs <pod-name> # Shows logs for the pod/container (we can stream the logs with the -f option at the end of the command)

โฏ๏ธ Running

To deploy the application in a development environment, execute the following command on the root directory.

$ kubectl apply -f mongo-config.yaml
$ kubectl apply -f mongo-secret.yaml
$ kubectl apply -f mongo.yaml
$ kubectl apply -f webapp.yaml

Documentation:

๐Ÿ“„ License

This project is under the MIT license. For more information, access LICENSE.

k8s-demo's People

Contributors

renatomh avatar

Watchers

 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.