From 71f9e3441ce02447d8abe287d06b06b084eab447 Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Tue, 9 Aug 2016 12:42:22 -0700 Subject: [PATCH] Fix the API version for cluster manifest and use --context instead of --cluster in the command line. --- docs/admin/federation/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/federation/index.md b/docs/admin/federation/index.md index 76e08cf90b..b360767989 100644 --- a/docs/admin/federation/index.md +++ b/docs/admin/federation/index.md @@ -113,7 +113,7 @@ Note that the file name should be `kubeconfig` since file name determines the na Now that the secret is created, we are ready to register the cluster. The YAML file for cluster will look like: ```yaml -apiVersion: v1beta1 +apiVersion: federation/v1beta1 kind: Cluster metadata: name: cluster1 @@ -137,11 +137,11 @@ cluster. Assuming our YAML file is located at `/cluster1/cluster.yaml`, we can run the following command to register this cluster: ```shell -$ kubectl create -f /cluster1/cluster.yaml --cluster=federation-cluster +$ kubectl create -f /cluster1/cluster.yaml --context=federation-cluster ``` -By specifying `--cluster=federation-cluster`, we direct the request to federation apiserver. +By specifying `--context=federation-cluster`, we direct the request to federation apiserver. we can ensure that the cluster registration was successful by running: ```shell