Skip to content

gochronicles/Kubernetesnetworking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To run this project :

  1. Look at the Makefile
  2. make load - Run this command to build and load the image to minikube . Before this make sure you have minikube started using minikube start
  3. make start - Run this command to start the service

This branch talks about usign Nodeport to communicate via services to the underlying pod. make load and make start have the following commands :

Start minikube

minikube start

Set docker env

eval $(minikube docker-env) # To point your shell to minikube's docker-daemon

Build image

docker build -t hello-world .

Load image into Minikube

minikube image load hello-world

Apply pod.yaml to create a deployment and a service

kubectl create -f pod.yaml

Get all the services

kubectl get svc

Start the service

minikube service helloworld-service

About

Shows Networking concepts in Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published