An open API service indexing awesome lists of open source software.

https://github.com/mr-hrr-harry/k8_test_nginx

This is the simple k8 config file and steps to deploy nginx in k8 cluster and access it.
https://github.com/mr-hrr-harry/k8_test_nginx

k8s k8s-cluster k8s-deployment kubectl kubernetes kubes minikube

Last synced: 21 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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`