Skip to content

Latest commit

 

History

History
87 lines (73 loc) · 2.54 KB

kubernetes-setup.adoc

File metadata and controls

87 lines (73 loc) · 2.54 KB

The profile {profile} is created to run the tutorial:

Minikube

Having minikube installed and in your PATH, then run:

MacOS

minikube start --memory=8192 --cpus=3 --kubernetes-version={kubernetes-version} --vm-driver=virtualbox -p {profile}

Linux

minikube start --memory=8192 --cpus=3 --kubernetes-version={kubernetes-version} --vm-driver=kvm2 -p {profile}

Windows:

minikube start --memory=8192 --cpus=3 --kubernetes-version={kubernetes-version} --vm-driver=hyperv -p {profile}

And the output must be something similar like:

😄  [{profile}] minikube v1.20.0 on Darwin 11.3
✅  Created a new profile : {profile}
✅  minikube profile was successfully set to {profile}
😄  [default] minikube {minikube-version} on Darwin 11.3
✨  Selecting 'virtualbox' driver from user configuration (alternates: [hyperkit])
🔥  Creating virtualbox VM (CPUs=2, Memory=8192MB, Disk=50000MB) ...
🐳  Preparing Kubernetes {kubernetes-version} on Docker '20.10.6' ...
    ▪ apiserver.enable-admission-plugins=LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook
🚜  Pulling images ...
🚀  Launching Kubernetes ...
⌛  Waiting for cluster to come online ...
🏄  Done! kubectl is now configured to use "{profile}"

Finally configure to use minikube internal docker as docker host:

eval $(minikube docker-env -p {profile})
OpenShift

To run OpenShift4, you need to have one provisioned using try.openshift.com or can use any existing OpenShift4 cluster. Once you have your cluster, you can download the latest OpenShift client(oc) from here and add to your path.

oc version

You can check the OpenShift version using:

oc version

The output should show oc version >=4.7:

Client Version: 4.7.0-202102130115.p0-c66c03f
Kubernetes Version: {kubernetes-version}

Then login into the OpenShift cluster using oc login