From e64c61e4f7abe86feb7059a6cc83e45274594320 Mon Sep 17 00:00:00 2001 From: makocchi Date: Tue, 21 Aug 2018 05:39:33 +0900 Subject: [PATCH] change the way to create ConfigMap (#9903) --- .../configure-redis-using-configmap.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tutorials/configuration/configure-redis-using-configmap.md b/content/en/docs/tutorials/configuration/configure-redis-using-configmap.md index 2de69abe74..47c426813d 100644 --- a/content/en/docs/tutorials/configuration/configure-redis-using-configmap.md +++ b/content/en/docs/tutorials/configuration/configure-redis-using-configmap.md @@ -35,10 +35,22 @@ This page provides a real world example of how to configure Redis using a Config You can follow the steps below to configure a Redis cache using data stored in a ConfigMap. -First create a ConfigMap from the `examples/pods/config/redis-config` file: +First create a ConfigMap from the `redis-config` file: + +{{< codenew file="pods/config/redis-config" >}} + +```shell +curl -OL https://k8s.io/examples/pods/config/redis-config +kubectl create configmap example-redis-config --from-file=redis-config +``` + +```shell +configmap/example-redis-config created +``` + +Examine the created ConfigMap: ```shell -kubectl create configmap example-redis-config --from-file=https://k8s.io/examples/pods/config/redis-config kubectl get configmap example-redis-config -o yaml ```