zkt25/z2/shop/kubernetes/prepare-app.sh

9 lines
278 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
eval $(minikube docker-env)
# build your Node image in Minikubes Docker daemon
cd ..
docker build -t shop-app:latest .
cd kubernetes
# create namespace & Mongo PV/PVC/StatefulSet
kubectl apply -f namespace.yaml
kubectl apply -n shop-ns -f statefulset.yaml