- Oracle Cloud Infrastructure
Oracle Cloud Infrastructure
根据如下介绍,为 Istio 配置 OKE 集群环境。
- 在你的 OCI 租户中,创建一个新的 OKE 集群。最简单的方式就是使用 Web Console 中的 “Quick Cluster” 选项。也可以使用下面的 OCI cli 命令:
$ oci ce cluster create --name oke-cluster1 \--kubernetes-version <preferred version> \--vcn-id <vcn-ocid> \--service-lb-subnet-ids [] \..
- 使用 OCI cli 为
kubectl获取登录凭据。
$ oci ce cluster create-kubeconfig \--file <path/to/config> \--cluster-id <cluster-ocid>
- 要给 Istio 创建必要的 RBAC 规则,需要为当前用户获取管理员(admin)权限。
$ kubectl create clusterrolebinding cluster-admin-binding \--clusterrole=cluster-admin \--user=<user_ocid>
