15.7. 清理集群
运行以下命令来清理集群:
$ oc delete svc demo-service -n default; \ $ oc delete pod demo-service -n default; \ $ oc delete project demo-egress-ns; \ $ oc delete project demo-egress-pod; \ $ oc delete egressip demo-egress-ns; \ $ oc delete egressip demo-egress-pod
运行以下命令来清理分配的节点标签:
警告如果您依赖机器池的节点标签,这个命令会替换这些标签。在
--labels
字段中输入所需标签,以确保您的节点标签保留。$ rosa update machinepool ${ROSA_MACHINE_POOL_NAME} \ --cluster="${ROSA_CLUSTER_NAME}" \ --labels ""