Creazione di un ambiente cluster Kubernetes
Creare un riferimento all'ambiente di destinazione cluster OKE (Kubernetes Engine).
Prima di iniziare, è necessario creare un cluster Kubernetes Engine. Per creare un criterio IAM specifico per l'ambiente OKE privato, vedere Criteri di ambiente.
Per accedere a DevOps utilizzando la console di Oracle Cloud, l'API REST e l'interfaccia CLI, vedere Accesso a DevOps.
Viene creato il riferimento all'ambiente cluster Kubernetes. È possibile creare una pipeline di distribuzione per distribuire gli artifact in un cluster OKE (Kubernetes Engine).
Per creare un riferimento a un ambiente cluster Kubernetes, eseguire il comando
create-oke-cluster-environment
:oci devops deploy-environment create-oke-cluster-environment
Parametri richiesti per il comando
create-oke-cluster-environment
:--cluster-id
--project-id
Per ottenere tutti i comandi per
deploy-environment
:oci devops deploy-environment -h
Per ottenere assistenza per il comando
create-oke-cluster-environment
:oci devops deploy-environment create-oke-cluster-environment -h
Per creare un riferimento a un ambiente cluster Kubernetes, utilizzare l'operazione
CreateDeployEnvironment
. Per l'attributodeployEnvironmentType
, specificare il valoreOKE_CLUSTER
.