How to Create a Kubernetes Cluster Using Minikube

minikube profile my-profile
minikube config get profile
kubectl explain deployment.spec.template.spec.containers
kubectl config get-contexts
kubectl config use-context my-cluster
kubectl config set-context $(kubectl config current-context) --namespace my-namespace
unset KUBECONFIG  

minikube start \ 
 --profile=handson-spring-boot-cloud \ 
--memory=10240 \ 
--cpus=4 \ 
--disk-size=30g \ 
--kubernetes-version=v1.20.5 \ 
--driver=hyperkit 
minikube profile handson-spring-boot-cloud 

minikube addons enable ingress 
minikube addons enable metrics-server
unset KUBECONFIG    minikube start \  
 --profile=handson-spring-boot-cloud \ 
 --memory=10240 \ 
 --cpus=4 \ 
 --disk-size=30g \ 
 --kubernetes-version=v1.20.5 \ 
 --driver=docker \ 
 --ports=8080:80 --ports=8443:443 \ 
 --ports=30080:30080 --ports=30443:30443  
minikube profile handson-spring-boot-cloud 

minikube addons enable ingress 
minikube addons enable metrics-server
kubectl get pods --namespace=kube-system

--

--

--

Our passion is bringing thousands of the best and brightest data scientists together under one roof for an incredible learning and networking experience.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 11 Newsletters For Developers

Linux Kernel: the ROP Exploit of Stack Overflow in Android Kernel

Pointers in C Programming

Creating a Custom Combine Publisher to Work with Firebase

Part 5: Hashing with SHA-256

Fuzzy C-Means Clustering for Iris Data

The detailed analysis of WordPress 5.0 RCE

Part 4: Incremental App Migration from VMs to Kubernetes — Implementing End-to-End TLS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ODSC - Open Data Science

ODSC - Open Data Science

Our passion is bringing thousands of the best and brightest data scientists together under one roof for an incredible learning and networking experience.

More from Medium

How to install docker on RHEL using Ansible role

A Gentle Introduction to dbatools Commands

Learn Bioinformatics in the Cloud. Part 1: Introduction

Cloud Camera — Simulating a Source