Last active
January 3, 2022 01:05
-
-
Save parisnakitakejser/658c4393877336cda21d03737eb09b90 to your computer and use it in GitHub Desktop.
Kubectl - Testing Minikube is up and running
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create deployment with nginx image | |
kubectl create deployment hello-node --image=nginx | |
kubectl get deployments | |
# Expose port 8080 on your Deployment as LoadBalancer | |
kubectl expose deployment hello-node --type=LoadBalancer --port=80 | |
kubectl get services | |
# Start tunnel on Minikube | |
minikube tunnel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment