Skip to content

Example code to deploy a simple nginx container into a kind kubernetes cluster using nodeport

Notifications You must be signed in to change notification settings

MatheusGuizolfi/k8s-kind-nodeport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

k8s-kind-nodeport

Example code to deploy a simple nginx container into a kind kubernetes cluster using nodeport

How to run this example

First you need to create the kubernetes cluster, we are gonna use kind tool to do it. Make sure you have kind installed in your computer. You can check how to do it in the link below.
Kind website.

Once you have kind installed, you need to run this command:
kind create cluster --name lab --config kind/config.yaml

This command will take some time to finish, so you can get a coffee :) Once you have your coffee and it is done, you need to run this command below.
kubectl apply -f k8s/nginx.yaml

Once this command finishes, you can go to your browser and access localhost on port 80.
localhost

About

Example code to deploy a simple nginx container into a kind kubernetes cluster using nodeport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published