Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 655 Bytes

File metadata and controls

39 lines (26 loc) · 655 Bytes

Packaging and deploying in Kubernetes

You can create the Docker image for the following application with:

docker build -t <your_docker_hub_username>/first-k8s-app:1.0.0 .

You can push the image to the Docker Hub registry with:

docker push <your_docker_hub_username>/first-k8s-app:1.0.0

Start your minikube cluster with:

minikube start --vm

Enable the Ingress add-on with:

minikube addons enable ingress

Deploy all of the resources with:

kubectl apply -f kube

Retrieve the IP address of minikube with:

minikube ip

Visit the application at http://<minikube-ip>/second