Skip to content

This is the simple k8 config file and steps to deploy nginx in k8 cluster and access it.

Notifications You must be signed in to change notification settings

mr-hrr-harry/k8_test_nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pre-requistes

  1. minikube
  2. kubectl

Deployment

start the deployment

kubectl apply -f deployment_nginx.yml

Service

start the service

kubectl apply -f service_nginx.yml

Update

update the index.html

kubectl cp index.html <--pod_name-->:usr/share/nginx/html/index.html

where '<--pod_name-->' is the name of the pod

use

kubectl get pods

URL

url to access in browser

minikube service nginx-test-service --url

About

This is the simple k8 config file and steps to deploy nginx in k8 cluster and access it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published