Kubernetes - setting up simple nginx service
This tutorial shows you how to deploy nginx and then expose the service (making it accessible) in minikube.
Your image will display "welcome to nginx" if you hit the main page as shown below :-
Here is an example of a deployment yaml. Let's say we call this app.yaml. First we run the following command :-
kubectl create -f app.yaml
Next, kubectl expose deployment nginx --type=LoadBalancer
kubectl get services
or
kubectl describe service nginx-service
You will see that external ip status is . In Minikube, you can access this service by using the following command :-
minikube service nginx
https://kubernetes.io/docs/tutorials/hello-minikube/
Comments