Setting up a Kubernetes cluster
Introduction
This guide is helpful in setting up a development environment intended to be used with odo
; this setup is not recommended for a production environment.
odo
can be used with ANY Kubernetes cluster. However, this development environment will ensure complete coverage of all features of odo
.
Requirements
- You have a Kubernetes cluster set up (such as minikube)
- You have admin privileges to the cluster
Important notes: odo
will use the default storage provisioning on your cluster. If it have not been set correctly, see our troubleshooting guide for more details.
Troubleshooting
Confirming your Storage Provisioning functionality
odo
deploys with Persistent Volume Claims. By default, when you install a StorageClass such as GlusterFS, it will not be set as the default.
You must set it as the default storage provisioner by modifying the annotation your StorageClass:
kubectl get StorageClass -A
kubectl edit StorageClass/YOUR-STORAGE-CLASS -n YOUR-NAMESPACE
And add the following annotation:
annotation:
storageclass.kubernetes.io/is-default-class: "true"