Skip to content

This repository provides code and resources for running containerized applications on a Kubernetes cluster.

License

Notifications You must be signed in to change notification settings

HelloDevOpsWorld/HelloKubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

HelloKubernetes

Welcome to the HelloKubernetes repository! This is a beginner-friendly tutorial on deploying a simple nginx web server on a local Kubernetes cluster using the Kind container.

Prerequisites

Before you can follow this tutorial, you'll need to have the following tools installed on your system:

Getting Started

To get started with the tutorial, follow these steps.

  1. Create a local kind cluster with a single node:
kind create cluster --name hello-nginx
  1. Clone this repository to your local machine
git clone https://github.com/HelloDevOpsWorld/HelloKubernetes.git
  1. Navigate to the hello-kubernetes/kind-nginx directory
cd hello-kubernetes/kind-nginx
  1. Deploy the hello-nginx application to your local cluster using the following command
kubectl create -f nginx.yaml
  1. Verify that the application is running by accessing it from your web browser at http://:.

To obtain the node internal IP address, you can run the following command:

kubectl get nodes -o wide

This will display the internal IP address of the Kubernetes node(s) in your cluster. Look for the IP address of the node where the Nginx deployment is running.

To obtain the exposed Nginx service port, you can run the following command:

kubectl get services

This will display the list of services running in your cluster. Look for the nginx-service service and note the value under the PORT(S) column for the http port. This is the exposed Nginx service port.

Once you have obtained the node internal IP address and the exposed Nginx service port, replace <node-internal-ip> and <exposed-nginx-service-port> in the URL with the respective values and enter the URL into your web browser to access the Nginx web server.

  1. Deleting Your Deployment When you're finished testing the hello-nginx deplyment, you can delete it and free up resources using the following command
kubectl delete deployment hello-nginx

License

This project is licensed under the MIT License.

About

This repository provides code and resources for running containerized applications on a Kubernetes cluster.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published