logo
  • Blog
  • The Cloud
  • DevOps
  • Trending
    • Blockchain
    • Bitcoin
  • How To
  • Kubernetes

 

  • Introduction to Kubernetes
  • Kubernetes Introduction
  • Container Introduction
  • Kubernetes Setup
  • Local Setup with Minikube
  • Minikube Demo
  • Kubernetes using the Docker client
  • Minikube vs Docker Client vs Kops vs Kubeadm
  • Introduction to Kops
  • Demo: Preparing Kops install
  • Demo: DNS Troubleshooting
  • Demo: Cluster setup on AWS using kops
  • Building Docker containers
  • Demo: Building docker containers
  • Docker Image Registry
  • Demo: Pushing Docker Image
  • Running first app on Kubernetes
  • Demo: Userful commands
  • Service with LoadBalancer
  • Demo: Service with AWS ELB LoadBalancer
  • Kubernetes Basic
  • Node Architecture
  • Replication Controller
  • Demo Replication Controller
  • Deployments
  • Demo: Deployments
  • Services
  • Demo: Services
  • Labels
  • Demo: NodeSelector using Labels
  • Healthchecks
  • Demo: Healthcheck
  • Readiness Probe
  • Demo: Liveness and Readiness probe
  • Pod State
  • Pod Lifecycle
  • Demo: Pod Lifecycle
  • Secrets
  • Demo: Credentials using Volumes
  • Demo: Running WordPress on K8s
  • WebUI
  • Demo: Web UI in Kops
  • Demo: WebUI
  • Advanced Topic
  • Service Discovery
  • Demo: Service Discovery
  • ConfigMap
  • Demo: ConfigMap
  • Ingress Controller
  • Demo: Ingress Controller
  • External DNS
  • Demo: External DNS
  • Volumes
  • Demo: Volumes
  • Volumes Autoprovisioning
  • Demo: WordPress with Volumes
  • Pod Presets
  • Demo: Pod Presets
  • StatefulSets
  • Demo: StatefulSets
  • Daemon Sets
  • Resource Usage Monitoring
  • Demo: Resource Usage Monitoring
  • Autoscaling
  • Demo: Autoscaling
  • Affinity / Anti-Affinity
  • Demo: Affinity / Anti-Affinity
  • Interpod Affinity and Anti-Affinity
  • Demo: Interpod Affinity
  • Demo Interpod Anti-Affinity
  • Taints and Tolerations
  • Demo: Taints and Tolerations
  • Custom Resource Definitions (CRDs)
  • Operators
  • Demo: postgresql-operator
  • Kubernetes Administration
  • The Kubernetes Master Services
  • Resource Quotas
  • Namespaces
  • Demo: Namespace quotas
  • User Managements
  • Demo: Adding Users
  • RBAC
  • Demo: RBAC
  • Networking
  • Node Maintenance
  • Demo: Node Maintenance
  • High Availability
  • Demo: High Availability
  • TLS on ELB using Annotations
  • Demo: TLS on ELB
  • Packaging and Deploying on Kubernetes
  • Introduction to Helm
  • Demo: Helm
  • Creating your own Helm Charts
  • Demo: Creating your own Helm Charts
  • Demo: Nodejs app Helm Chart
  • Demo: Setting up a Helm Repository on S3
  • Demo: Building and Deploying Helm Charts with Jenkins
  • Serverless on Kubernetes
  • Introduction to Serverless
  • Introduction to Kubeless
  • Demo: Creating Functions with Kubeless
  • Demo: Triggering Kubeless Functions with Kafka
  • Microservices
  • Introduction to Istio
  • Demo: Istio Installation
  • Demo: An Istio enables app
  • Demo: Advances routing with Istio
  • Installing Kubernetes using kubeadm
  • Introduction to kubeadm
  • Demo: kubeadm (Part 1)
  • Demo: kubeadm (Part 2)
  • On-Prem or Cloud Agnostic Kubernetes
  • Managing TLS Certs with Cert-Manager
  • Demo: Cert-Manager (Part 1)
  • Demo: Cert-Manager (Part 2)

Local Setup with Minikube

Minikube implements a local Kubernetes cluster on macOS, Linux, and Windows.

The primary goal of minikube is to make it simple to run Kubernetes locally, for day-to-day development workflows and learning purposes.

Following are the guiding principles for Minikube.

  • Inclusive and community-driven
  • User-friendly
  • Support all Kubernetes features
  • Cross-platform
  • Reliable
  • High Performance
  • Developer Focused

Here are some specific minikube features that align with our goal:

  • Single command setup and teardown UX
  • Support for local storage, networking, auto-scaling, load balancing, etc.
  • Unified UX across operating systems
  • Minimal dependencies on third party software
  • Minimal resource overhead

Following are highlights on Minikube:

  • Minikube is a tool that makes it easy to run Kubernetes locally.
  • Minikube runs a single-node Kubernetes cluster inside a Linux VM.
  • It’s aimed on users who want to just test it out or use it for development.
  • It cannot spin-up a production cluster, it’s a one node machine with no high availability.
  • It works on Windows, Linux, and MacOS
  • You will need Virtualization Software installed to run Minikube. For example, you can use VirtualBox, as its free and downloaded from – https://www.virtualbox.org/wiki/Downloads
  • You can download Minikube from – https://github.com/kubernetes/minikube/

Following are the steps to setup Minikube in local machine.

  • Installing Minikube in Linux – https://minikube.sigs.k8s.io/docs/start/linux/
  • Installing Minikube in MacOS – https://minikube.sigs.k8s.io/docs/start/macos/
  • Installing Minikube in Windows – https://minikube.sigs.k8s.io/docs/start/windows/

After downloading the Minikube binary, run following commands.

Minikube in action

1. Start a cluster by running
$ minikube start

2. Access the Kubernetes Dashboard running within the minikube cluster:
$ minikube dashboard

3. Once started, you can interact with your cluster using kubectl, just like any other Kubernetes cluster. For instance, starting a server:
$ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4

4. Exposing a service as a NodePort
$ kubectl expose deployment hello-minikube --type=NodePort --port=8080

5. minikube makes it easy to open this exposed endpoint in your browser:
$ minikube service hello-minikube

6. Start a second local cluster (note: This will not work if minikube is using the bare-metal/none driver):
$ minikube start -p cluster2

7. Stop your local cluster:
$ minikube stop

8. Delete your local cluster:
$ minikube delete

9. Delete all local clusters and profiles
$ minikube delete --all

In next article, you will see the demo of Minikube installation.

  • Previous page
  • Next page

 455 total views,  1 views today

Local Setup with Minikube was last modified: December 25th, 2019 by Sushil Verma
Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email

Latest Blogs

  • Linux: Viewing Log Messages
  • AWS CodeBuild: Getting Started
  • AWS CodeCommit: Set up Notifications
  • AWS CodeCommit: Securing The Repository and Branches
  • Managing Systemd units in Linux

Tags

Amazon EC2 AWS bash_shell bitcoin blockchain Cloud computing CodeCommit DevOps digital currency Kubernetes Linux trending ubuntu

For Improving Education

Categories

  • Amazon EC2
  • Amazon Web Services
  • AWS
  • AWS CodeCommit
  • Bash shell
  • Best Practices
  • Bitcoin
  • Blockchain
  • Chaincode
  • CLI
  • Cloud Computing
  • Cloud Security
  • CodeBuild
  • CodeCommit
  • CryptoCurrency
  • Cryptography
  • DevOps
  • Digital Currency
  • EC2 Lambda
  • Hyperledger
  • IBM Bluemix
  • IBM Garage
  • Kubernetes
  • Linux
  • Monitoring
  • OpenStack
  • Platform as a Service
  • TDD
  • Trending
  • Ubuntu
  • Virtual Server
Home | Site Map | Privacy Policy | Site Terms | Terms of use @2013, Times of Cloud.
The content is copyrighted to 'Times of Cloud' and may not be reproduced on other websites.