From 467f8fa2bc84f80e594c9b4f6f1f1c2d9d487231 Mon Sep 17 00:00:00 2001 From: Hieu LE Date: Wed, 16 Nov 2016 14:30:39 +0700 Subject: [PATCH] [docs]Update quickstart guide to use cluster-config command Magnum CLI now support cluster-config command. However, the quickstart guide hasn't been updated to use this command yet. This patch added usage for cluster-config command in quickstart guide. Change-Id: I21341fe90c09f8f21e33bda4592c9175f3d16375 Closes-Bug: #1614685 --- doc/source/dev/quickstart.rst | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/doc/source/dev/quickstart.rst b/doc/source/dev/quickstart.rst index e08b239332..6ade3e5b21 100644 --- a/doc/source/dev/quickstart.rst +++ b/doc/source/dev/quickstart.rst @@ -411,16 +411,8 @@ to Magnum to get it signed and also download the signing cert.:: Here's how to set up the replicated redis example. Now we create a pod for the redis-master:: - KUBERNETES_URL=$(magnum cluster-show k8s-cluster | - awk '/ api_address /{print $4}') - - # Set kubectl to use the correct certs - kubectl config set-cluster k8s-cluster --server=${KUBERNETES_URL} \ - --certificate-authority=$(pwd)/ca.crt - kubectl config set-credentials client --certificate-authority=$(pwd)/ca.crt \ - --client-key=$(pwd)/client.key --client-certificate=$(pwd)/client.crt - kubectl config set-context k8s-cluster --cluster=k8s-cluster --user=client - kubectl config use-context k8s-cluster + # Using cluster-config command for faster configuration + eval $(magnum cluster-config k8s-cluster) # Test the cert and connection works kubectl version