Creating a Kubernetes Cluster Environment
Learn how to create a reference to Container Engine for Kubernetes (OKE) cluster target environment.
Before you begin, you must create a Container Engine for Kubernetes cluster. For creating IAM policy specific to private OKE environment, see Environment Policies.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
Using the Console
The reference to the Kubernetes cluster environment is created. You can create a deployment pipeline to deploy artifacts to a Container Engine for Kubernetes (OKE) cluster.
Using the CLI
To create a reference to a Kubernetes cluster environment, run the create-oke-cluster-environment
command:
oci devops deploy-environment create-oke-cluster-environment
Required parameters for the create-oke-cluster-environment
command:
--cluster-id
--project-id
To get all the commands for deploy-environment
:
oci devops deploy-environment -h
To get help for the create-oke-cluster-environment
command:
oci devops deploy-environment create-oke-cluster-environment -h
Using the API
To create a reference to a Kubernetes cluster environment, use the CreateDeployEnvironment
operation.
For the deployEnvironmentType
attribute, specify the
OKE_CLUSTER
value.