Overview of Kubernetes and its benefits for container orchestration.
Introduction to Oracle Kubernetes Engine (OKE) in OCI.
Creating an OKE Cluster
oci ce cluster create --compartment-id <compartment_OCID> --name "MyCluster" --kubernetes-version <version> --wait-for-state ACTIVE
Managing Node Pools
- Adding Node Pool
oci ce node-pool create --compartment-id <compartment_OCID> --cluster-id <cluster_OCID> --name "MyNodePool" --node-image-name "<image_name>" --node-shape "<shape>" --node-pool-lifecycle-state ACTIVE
Scaling Node Pool:
oci ce node-pool update --node-pool-id <node_pool_OCID> --quantity <new_quantity>
Deploying Applications
Deploying Application with kubectl:
kubectl create deployment my-app --image=<docker_image>
Configuring Ingress and Load Balancing
Creating Ingress Controller:
kubectl apply -f ingress-controller.yaml
Exposing Service with LoadBalancer:
kubectl expose deployment my-app --type=LoadBalancer --port=80 --target-port=8080