-
If you haven't already, go to the
OCI Console >> Developer Services >> Kubernetes Clusters (OKE)
and create a single node OKE Cluster in your compartment. -
Create an Environment to point to your OKE Cluster
DevOps Project >> Environments >> Create Environment
. Enter the following details:Environment Type: Oracle Kubernetes Engine Name: ssp-oke-cluster Description: OKE Cluster Click Next. Select your region and compartment. Select a cluster.
Click
Create Environment
. -
Create the Kubernetes Manifest in the OCI Artifact Registry. Create a new Artifact Repository. Upload Artifact.
Artifact path: Oracle Kubernetes Engine Version: ssp-oke-cluster Upload method: Console Content file: Drag and drop
-
<TODO>
-
<TODO>
-
<TODO>
-
<TODO>
-
<TODO>
-
Check the status of the deployment.
kubectl get deployments -o wide
-
Check the status of the pod.
kubectl get pods -o wide
-
Get the load balancer's external (public) IP address by running this command:
kubectl get svc -o wide
-
To test the app running on OKE, go to
http://<EXTERNAL-IP>/jibber
in a browser and you should see a nonsense verse. -
To check the pod logs, run this command:
kubectl logs -l app=jibber-ni-gvmee22-jdk17
-
To delete the OCI Load Balancer and the app-related resources (deployment, pod, service) from the OKE cluster:
kubectl delete -f ./oke-manifests/oke_manifest_native_exec_ee.yaml
The output is similar to:
deployment.apps "jibber-ni-gvmee22-jdk17-deploy" deleted service "jibber-ni-gvmee22-jdk17-service" deleted