Updated 2024-08-13

Blue-Green OKE Deployment

Create deployment pipeline using Blue-Green release strategy for Kubernetes Engine (OKE)

Prerequisites

The prerequisites are as follows:

  • Have a deployment pipeline, Kubernetes cluster environment to deploy to, and artifacts. Artifacts can be defined inline or located in the Artifact Registry.
  • As the OKE cluster doesn't have an ingress controller by default, an NGINX ingress controller must be set up for the Blue-Green deployment strategy. The NGINX ingress name must be defined in the Kubernetes manifest. An ingress controller is a Kubernetes application that routes traffic based on ingress specification. The NGINX ingress controller monitors ingress resources for load balancing. The traffic is shifted from staging to the production environment by updating the ingress resource. For more information, see Setting Up an Ingress Controller on a Cluster.
  • To define the blue and green deployment environments, you must create two namespaces on the Kubernetes cluster. You must not specify namespaces in the Kubernetes manifests, as they're provided in the Console. For more information about namespaces, see the Kubernetes documentation.
Note

To scale down the inactive or standby namespace after the deployment, you must maintain at least one replica to avoid any issues.

For creating dynamic groups and policies for deployment pipelines, see Deployment Pipeline Policies. For more details, see DevOps IAM Policies.

For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.

Updated 2024-08-13