16.2. Configuration de votre environnement
- Connectez-vous à votre cluster à l’aide d’un compte avec des privilèges cluster-admin.
Configurez une variable d’environnement pour le nom de votre cluster:
export CLUSTER_NAME=$(oc get infrastructure cluster -o=jsonpath="{.status.infrastructureName}" | sed 's/-[a-z0-9]\{5\}$//')$ export CLUSTER_NAME=$(oc get infrastructure cluster -o=jsonpath="{.status.infrastructureName}" | sed 's/-[a-z0-9]\{5\}$//')Copy to Clipboard Copied! Toggle word wrap Toggle overflow Assurez-vous que tous les champs sortent correctement avant de passer à la section suivante:
echo "Cluster: ${CLUSTER_NAME}"$ echo "Cluster: ${CLUSTER_NAME}"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exemple de sortie
Cluster: my-rosa-cluster
Cluster: my-rosa-clusterCopy to Clipboard Copied! Toggle word wrap Toggle overflow