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.
- Host: GitHub
- URL: https://github.com/mr-hrr-harry/k8_test_nginx
- Owner: mr-hrr-harry
- Created: 2024-07-26T20:21:21.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-12T18:43:13.000Z (8 months ago)
- Last Synced: 2025-02-11T17:14:31.606Z (2 months ago)
- Topics: k8s, k8s-cluster, k8s-deployment, kubectl, kubernetes, kubes, minikube
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`