Giter VIP home page Giter VIP logo

kube-random-hash's Introduction

kube-random-hash

NodeJS app that returns a string hash and deploys it in kubernetes pod replicas.

You can inspect your app in Lens Kubernetes IDE: Lens Kubernetes IDE

Steps to execute

If you clone the code start the kube like this:

kubectl apply -f .\manifests\deployment.yaml 

Otherwise link directly to this repo:

kubectl apply -f https://raw.githubusercontent.com/quindai/kube-random-hash/main/manifests/deployment.yaml 

You should get

deployment.apps/hashgenerator-dep created

Visualize you kube running:

kubectl describe deployment hashgenerator-dep

Extract the NewReplicaSet variable and visualize the pod:

kubectl describe pod hashgenerator-dep-59876bb5fb
...

Events:
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  49s   default-scheduler  Successfully assigned default/hashgenerator-dep-59876bb5fb-6vrf2 to k3d-k3s-default-agent-0
  Normal  Pulling    49s   kubelet            Pulling image "quindai/kube_random:latest"
  Normal  Pulled     47s   kubelet            Successfully pulled image "quindai/kube_random:latest" in 1.559150007s
  Normal  Created    47s   kubelet            Created container hashgenerator
  Normal  Started    47s   kubelet            Started container hashgenerator

Delete the kube:

kubectl delete -f .\manifests\deployment.yaml 

kube-random-hash's People

Contributors

quindai 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.