/kubernates-app-volume

Deploying Application on Kubernetes and setup volumes

Primary LanguageJavaScript

Deploying Application on Kubernetes and setup volumes

This guide explains how to deploy the sample application on a Kubernetes cluster using volume.

Prerequisites

Before you get started, you need to have the following tools installed:

  • Docker
  • minikube or a Kubernetes cluster
  • kubectl

Building the app image

Navigate to the root directory of the cloned repository:

Build the Docker image and push it to a registry:

docker build -t leonlogli/kubernates-app-volume .
docker push leonlogli/kubernates-app-volume

Apply deployment and service

kubectl apply -f="kubernates.yaml"

Get the external IP address of the service:

minikube service kubernates-app-volume

Delete services and deployment

kubectl delete -f="kubernates.yaml"