Original Publish date : 9/24/2020
Below are the steps to create an Oracle Linux Container Native Environment (OLCNE) on Virtual Machine using Vagrant :
Pre-Requisites:
– Download and install Oracle Virtual Machine, Vagrant and GitBash
Demo :
Commands Used:
Detailed Steps:
Step 1:
Clone repo :
git clone https://github.com/oracle/vagrant-projects

Step 2:
vagrant plugin install vagrant-env
vagrant plugin install vagrant-hosts
vagrant plugin install vagrant-proxyconf

Step 3:
copy .env to .env.local

Edit “.env.local” file
“REGISTRY_OLCNE” defaults to “container-registry.oracle.com/olcne”
Uncomment this and change REGISTRY_OLCNE to a closest Oracle Container Registry mirror to your region.
You can refer to the following Doc for information about your region :
Link : https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
For Example :
REGISTRY_OLCNE=’container-registry-ap-hyderabad-1.oracle.com/olcne’


Step 4:
vagrant up


Step 5:
To get list of nodes :
vagrant global-status OR vagrant hosts list
SSH to master node

Step 6:
Run the following kubectl commands to make sure the cluster is created successfully :
kubectl cluster-info
kubectl get nodes
kubectl get pods –namespace=kube-system

Demo :
