Oracle Cloud – setting up Oracle CLI and Kubernetes

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