From 19e7bd43b53507757e51505fcb8f3351bfefe5af Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 7 Jan 2019 10:29:44 +0800 Subject: [PATCH] added docs/setup/kubernetes/platform-setup/oci/ (#3044) --- .../kubernetes/platform-setup/oci/index.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 content_zh/docs/setup/kubernetes/platform-setup/oci/index.md diff --git a/content_zh/docs/setup/kubernetes/platform-setup/oci/index.md b/content_zh/docs/setup/kubernetes/platform-setup/oci/index.md new file mode 100644 index 0000000000..2f3e185df2 --- /dev/null +++ b/content_zh/docs/setup/kubernetes/platform-setup/oci/index.md @@ -0,0 +1,35 @@ +--- +title: Oracle Cloud Infrastructure +description: 为 Istio 对 OKE 集群环境进行配置。 +weight: 9 +skip_seealso: true +keywords: [platform-setup,kubernetes,oke,oci,oracle] +--- + +根据如下介绍,为 Istio 配置 OKE 集群环境。 + +1. 在你的 OCI 租户中,创建一个新的 OKE 集群。最简单的方式就是使用 [Web Console](https://docs.cloud.oracle.com/iaas/Content/ContEng/Tasks/contengcreatingclusterusingoke.htm) 中的 “Quick Cluster” 选项。也可以使用下面的 [OCI cli](https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/cliinstall.htm) 命令: + + {{< text bash >}} + $ oci ce cluster create --name oke-cluster1 \ + --kubernetes-version \ + --vcn-id \ + --service-lb-subnet-ids [] \ + .. + {{< /text >}} + +1. 使用 OCI cli 为 `kubectl` 获取登录凭据。 + + {{< text bash >}} + $ oci ce cluster create-kubeconfig \ + --file \ + --cluster-id + {{< /text >}} + +1. 要给 Istio 创建必要的 RBAC 规则,需要为当前用户获取管理员(admin)权限。 + + {{< text bash >}} + $ kubectl create clusterrolebinding cluster-admin-binding \ + --clusterrole=cluster-admin \ + --user= + {{< /text >}}