Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Last active January 3, 2022 01:05
Show Gist options
  • Save parisnakitakejser/658c4393877336cda21d03737eb09b90 to your computer and use it in GitHub Desktop.
Save parisnakitakejser/658c4393877336cda21d03737eb09b90 to your computer and use it in GitHub Desktop.
Kubectl - Testing Minikube is up and running
# 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