Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BA418200CE0 for ; Wed, 26 Jul 2017 16:37:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B7993167A64; Wed, 26 Jul 2017 14:37:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 106DA167AB6 for ; Wed, 26 Jul 2017 16:37:56 +0200 (CEST) Received: (qmail 34989 invoked by uid 500); 26 Jul 2017 14:37:56 -0000 Mailing-List: contact commits-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list commits@openwhisk.apache.org Received: (qmail 34948 invoked by uid 99); 26 Jul 2017 14:37:55 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 14:37:55 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 01627811C4; Wed, 26 Jul 2017 14:37:54 +0000 (UTC) Date: Wed, 26 Jul 2017 14:37:54 +0000 To: "commits@openwhisk.apache.org" Subject: [incubator-openwhisk-deploy-kube] branch master updated: Simplify instructions for editing the nginx ConfigMap. (#41) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150107987496.25964.16514479790978258299@gitbox.apache.org> From: houshengbo@apache.org Reply-To: "commits@openwhisk.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-openwhisk-deploy-kube X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: f5b81373275565876e256b8d9c30a42f3ec19cd3 X-Git-Newrev: f5fbeb4fefd93323b878bb98d5d83daa7fb16f8b X-Git-Rev: f5fbeb4fefd93323b878bb98d5d83daa7fb16f8b X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 26 Jul 2017 14:37:57 -0000 This is an automated email from the ASF dual-hosted git repository. houshengbo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git The following commit(s) were added to refs/heads/master by this push: new f5fbeb4 Simplify instructions for editing the nginx ConfigMap. (#41) f5fbeb4 is described below commit f5fbeb4fefd93323b878bb98d5d83daa7fb16f8b Author: Ben Browning AuthorDate: Wed Jul 26 10:37:53 2017 -0400 Simplify instructions for editing the nginx ConfigMap. (#41) `kubectl` has a built-in `edit` command that saves a couple of steps compared to using `kubectl get` and `kubectl replace` directly. I have signed the Apache CLA as "Benjamin M. Browning". --- kubernetes/nginx/README.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/kubernetes/nginx/README.md b/kubernetes/nginx/README.md index 2eecf8f..98402e0 100644 --- a/kubernetes/nginx/README.md +++ b/kubernetes/nginx/README.md @@ -51,27 +51,10 @@ kubectl apply -f nginx.yml ## Update Nginx ConfigMap -When updating the nginx ConfigMap, you will need to have the -actual yaml file. To obtain the generated YAML file run: - -``` -kubectl -n openwhisk get cm nginx -o yaml > nginx_configmap.yml -``` - -Then you can manually edit the fields by hand. Please note that you -will need to remove a couple of fields from the `metadata` section. - -``` - creationTimestamp: 2017-06-21T15:39:56Z - resourceVersion: "2156" - selfLink: /api/v1/namespaces/openwhisk/configmaps/nginx - uid: e0585576-5697-11e7-aef9-080027a9c6c9 -``` - -When you have finished editing the yaml file, run: +To update the nginx ConfigMap: ``` -kubectl replace -f nginx_configmap.yml +kubectl -n openwhisk edit cm nginx -o yaml ``` Kubernetes will then go through an update any deployed Nginx -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" '].