If you wish to use the OpenFaaS Pro dashboard, [you must run the steps to "Create a signing key"](https://docs.openfaas.com/openfaas-pro/dashboard/#installation) before installing the Helm chart.
...
...
@@ -114,9 +115,10 @@ Now deploy OpenFaaS from the helm chart repo:
You can also review recommended Pro values in [values-pro.yaml](values-pro.yaml)
...
...
@@ -154,10 +157,11 @@ If you are working on a patch for the helm chart, you can deploy it directly fro
You can run the following command from within the `faas-netes` folder, not the chart's folder.
```sh
helm upgrade openfaas --install chart/openfaas \
--namespace openfaas \
-f ./chart/openfaas/values.yaml \
-f ./chart/openfaas/values-pro.yaml
helm upgrade openfaas \
--install chart/openfaas \
--namespace openfaas \
-f ./chart/openfaas/values.yaml \
-f ./chart/openfaas/values-pro.yaml
```
In the example above, I'm overlaying two additional YAML files for settings for the chart.
...
...
@@ -216,15 +220,6 @@ In addition:
* Set the `imagePullPolicy` to `IfNotPresent` so that the `kubelet` only pulls images which are not already available
* Explore alternatives such as not scaling to absolute zero, and using async calls which do not show the cold start
#### httpProbe vs. execProbe
A note on health-checking probes for functions:
* httpProbe - (`default`) most efficient. (compatible with Istio >= 1.1.5)
* execProbe - least efficient option, but compatible with Istio < 1.1.5
Use `--set faasnetes.httpProbe=true/false` to toggle between http / exec probes.
### Verify the installation
Once all the services are up and running, log into your gateway using the OpenFaaS CLI. This will cache your credentials into your `~/.openfaas/config.yml` file.
...
...
@@ -351,23 +346,22 @@ If you use a service mesh like Linkerd or Istio in your cluster, then you should
### Istio mTLS
To install OpenFaaS with Istio mTLS pass `--set istio.mtls=true` and disable the HTTP probes:
Istio requires OpenFaaS Pro to function correctly.
To install OpenFaaS Pro with Istio mTLS pass `--set istio.mtls=true` and disable the HTTP probes:
```sh
helm upgrade openfaas --install chart/openfaas \
--namespace openfaas \
--setbasic_auth=true\
--setopenfaasPro=true\
--setexposeServices=false\
--set faasnetes.httpProbe=false\
--sethttpProbe=false\
--set gateway.directFunctions=true\
--set gateway.probeFunctions=true\
--set istio.mtls=true
```
The above command will enable mTLS for the openfaas control plane services and functions excluding NATS.
> Note that the above instructions were tested on GKE 1.13 and Istio 1.2
| `faasnetes.livenessProbe.initialDelaySeconds` | Number of seconds after the container has started before [probe](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes) is initiated | `2` |