You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2019/10/10 21:26:38 UTC

[openwhisk-deploy-kube] branch master updated: kind: describe using `kind load` to deploy locally-built image (#536)

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new f311016  kind: describe using `kind load` to deploy locally-built image (#536)
f311016 is described below

commit f311016f9bcba7bf8c91aec664c460670479e5b9
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Thu Oct 10 17:26:33 2019 -0400

    kind: describe using `kind load` to deploy locally-built image (#536)
---
 docs/k8s-kind.md | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/docs/k8s-kind.md b/docs/k8s-kind.md
index 5b752dc..801321f 100644
--- a/docs/k8s-kind.md
+++ b/docs/k8s-kind.md
@@ -112,6 +112,31 @@ we will use the port forwarding configured by the `extraPortMappings`
 in kind-cluster.yaml to allow the OpenWhisk apihost property
 to be set to localhost:31001
 
+## Hints and Tips
+
+If you are working on the core OpenWhisk system and want
+to use a locally built controller or invoker image to test
+your changes, you need to push the image to the docker image
+repository inside the `kind` cluster.
+
+For example, suppose I had a local change to the controller
+I wanted to test.  To do this, I would build the image normally
+(`gradlew distDocker` in `openwhisk`). Then, execute the `kind`
+command
+```shell
+kind load docker-image whisk/controller
+```
+Then add a stanza to your `mycluster.yaml` to override the default
+behavior of pulling a stable `openwhisk/controller` image from Docker Hub.
+```yaml
+controller:
+  imageName: "whisk/controller"
+  imageTag: "latest"
+```
+
+Then deploy OpenWhisk normally using `helm install`. The deployed
+system will use the locally built `whisk/controller` image.
+
 ## Limitations
 
 Using kind is only appropriate for development and testing purposes.