Skip to content

Commit 238f95d

Browse files
committed
Update minikube section
Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent 4cc4253 commit 238f95d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/deployment/kubernetes.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can start evaluating FaaS and building functions on your laptop or on a VM (
1212

1313
Additional information on [setting up Kubernetes](https://kubernetes.io/docs/setup/pick-right-solution/).
1414

15-
We have a special guide for minikube here:
15+
A guide is available for configuring minikube here:
1616

1717
* [Getting started with OpenFaaS on minikube](https://medium.com/devopslinks/getting-started-with-openfaas-on-minikube-634502c7acdf)
1818

@@ -305,12 +305,13 @@ By default, deployed functions will use an `imagePullPolicy` of `Always`, which
305305

306306
If you're using helm you can pass a configuration flag:
307307
308-
```
308+
```sh
309309
helm upgrade openfaas openfaas/openfaas --install --set "faasnetesd.imagePullPolicy=IfNotPresent"
310310
```
311311
312312
If you're using the plain YAML files then edit `gateway-dep.yml` and set the following for `faas-netes`:
313-
```
313+
314+
```yaml
314315
- name: image_pull_policy
315316
value: "IfNotPresent"
316317
```
@@ -319,6 +320,6 @@ If you're using the plain YAML files then edit `gateway-dep.yml` and set the fol
319320

320321
As mentioned above, the default value is `Always`. Every time a function is deployed or is scaled up, Kubernetes will pull a potentially updated copy of the image from the registry. If you are using static image tags like `latest`, this is necessary.
321322

322-
When set to `IfNotPresent`, function deployments may not be updated when using static image tags like `latest`. `IfNotPresent` is particularly useful when developing locally with minikube. In this case, you can set your local environment to use [minikube's docker](https://github.com/kubernetes/minikube/blob/master/docs/reusing_the_docker_daemon.md) so `faas-cli build` builds directly into minikube's image store. `faas-cli push` is unnecessary in this workflow - use faas-cli build then faas-cli deploy.
323+
When set to `IfNotPresent`, function deployments may not be updated when using static image tags like `latest`. `IfNotPresent` is particularly useful when developing locally with minikube. In this case, you can set your local environment to use [minikube's docker](https://github.com/kubernetes/minikube/blob/master/docs/reusing_the_docker_daemon.md) so `faas-cli build` builds directly into the Docker library used by minikube. `faas-cli push` is unnecessary in this workflow - use faas-cli build then faas-cli deploy.
323324
324325
When set to `Never`, only local (or pulled) images will work. This is useful if you want to tightly control which images are available and run in your Kubernetes cluster.

0 commit comments

Comments
 (0)