Installing the OCI
Setting up Oracle
sudo dnf -y install oraclelinux-developer-release-el8
sudo dnf install python36-oci-cli
mkdir -p $HOME/.kube
oci ce cluster create-kubeconfig --cluster-id ocid1.cluster.oc1.iad.aaaaaaaaoofz77jbpcua6xyh3e7y4nipcf75xkzlv6hchg4z6crshvwoyyda --file $HOME/.kube/config --region us-ashburn-1 --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT
export KUBECONFIG=$HOME/.kube/config
testing the cluster
oci ce cluster list
oci ce cluster list --all --compartment-id ocid1.compartment.oc1..aaaaaaaay343ne7tlv664a2fhyytq2x2il5feezqnocgaikitb3l7xqoc5qa
Deploying in the Kubernetes:
Follow the instruction on the Oracle guide. I was able to go through step by step and create a pod. There are bit confusing parameters. You need to try and figure out the right paramters
Reference
- Installing and setting up kubectl on linux: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management
- Oracle guide – step by step for Kubernetes deployment – https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/spring-on-k8s/01oci-spring-k8s-summary.htm
- Guide on pulling images for deployment – https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengpullingimagesfromocir.htm
- Creating Deployment: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment
- Example with Python – https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/flask-cloud-shell/01oci-flask-shell-summary.htm