GithubHelp home page GithubHelp logo

hunainaslam / hellonode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openware/hellonode

0.0 2.0 0.0 14 KB

NodeJS HelloNode example for Kubernetes

Makefile 40.34% Smarty 39.57% JavaScript 20.09%

hellonode's Introduction

HelloNode

HelloNode example for minikube

Install and start Minikube

Install for MacOSX

brew cask install minikube
brew install kubectl

or using

# kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl

# minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.23.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

Run minikube and set kubeconfig

minikube start
kubectl config use-context minikube

Configure your docker client to point into minikube docker engine

eval $(minikube docker-env)

Git clone this repository and build image

git clone https://github.com/helios-technologies/hellonode.git
cd hellonode

build the docker image into the minikube engine

docker build -t hellonode:1.0.0 .
docker images

Create a new deployment

kubectl run hello-node --image=hellonode:1.0.0 --port=8080

Expose the service onto a VM port

kubectl expose deployment hello-node --type=NodePort

List all resources and curl your service

kubectl get all
curl $(minikube service hello-node --url)

Now using helm

helm install ./config/charts/hellonode

Overidding a value:

helm install ./config/charts/hellonode --set "image.tag=$(cat VERSION)"
or
make deploy

Generate with kite :

kite generate service --git [email protected]:helios-technologies/hellonode.git --image hellonode  --image-version=1.0.0 --chart-version=0.1.0 .

hellonode's People

Contributors

calj avatar nmuzychuk avatar

Watchers

 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.