git clone https://github.com/habitat-sh/sample-node-app
cd sample-node-app
npm install
vim habitat/plan.sh # Replace your_origin with your origin
hab studio enter
build
hab pkg export docker ./results/nellshamrell-sample-node-app-1.1.0-20190503213831-x86_64-linux.hart --push-image -U nellshamrell -P ...
exit
docker run -it -p 8000:8000 nellshamrell/sample-node-app
Navigate to http://0.0.0.0:8000 in browser
hab pkg export kubernetes ./results/nellshamrell-sample-node-app-1.1.0-20190503213831-x86_64-linux.hart --push-image -U nellshamrell -P ... -o sample_node_app.yaml
kubectl create -f ./sample_node_app.yaml
kubectl expose statefulset
Working Kubernetes manifest
Can access the running application at http://service_ip:8000