dse-assignment/deploy-local.sh

17 lines
521 B
Bash
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.

#!/bin/bash
echo "Pointing shell to minikubes docker-daemon..."
eval $(minikube -p minikube docker-env)
echo "Building images..."
docker build -t entity-ident components/entitiy_ident/entity_ident_service
echo "Creating deployments and services..."
kubectl create -f kubernetes/entity-ident-deployment.yaml
kubectl create -f kubernetes/entity-ident-service.yaml
echo "Enabling Ingress addon..."
minikube addons enable ingress
echo "Creating the Ingress object..."
kubectl apply -f kubernetes/minikube-ingress.yaml