Skip to content

Commit 91beedb

Browse files
charliesolomonalexellis
authored andcommitted
Update kubernetes install docs for helm v3
Fixes #244 Helm v3 does not use Tiller and nginx-ingress helm chart install has changed. Signed-off-by: Charlie Solomon <[email protected]>
1 parent 1289688 commit 91beedb

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

docs/reference/ssl/kubernetes-with-cert-manager.md

+22-9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ You can obtain TLS certificates for the OpenFaaS API Gateway and for your functi
44

55
We will use the following components:
66

7+
- [Nginx IngressController][nginx-ingress]
78
- OpenFaaS installed via [helm][openfaas-helm] or (`helm template` if you can't use `tiller`)
89
- [cert-manager][cert-manager]
9-
- [Nginx IngressController][nginx-ingress]
1010

1111
We will split this tutorial into two parts:
1212

@@ -17,13 +17,9 @@ We will split this tutorial into two parts:
1717

1818
This part guides you through setting up all the pre-requisite components to enable TLS for your gateway. You can then access your gateway via a URL such as `https://gw.example.com` and each function such as: `https://gw.example.com/function/nodeinfo`.
1919

20-
### Configure Helm and Tiller
20+
### Configure Helm
2121

22-
First install Helm and the Tiller [following the instructions provided by Helm][helm-install]
23-
24-
### Install OpenFaaS
25-
26-
Follow the instructions found in the [OpenFaaS Helm Chart](https://github.com/openfaas/faas-netes/tree/master/chart/openfaas#deploy-openfaas). As part of these instructions you will create a basic-auth password to secure the Gateway's API and UI.
22+
First install Helm v3 [following the instructions provided by Helm][helm-install]
2723

2824
### Install nginx-ingress
2925

@@ -32,7 +28,8 @@ This example will use a Kubernetes [IngressController](https://kubernetes.io/doc
3228
Add Nginx using the helm `chart-ingress`:
3329

3430
```sh
35-
$ helm install stable/nginx-ingress --name nginxingress --set rbac.create=true
31+
$ helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
32+
$ helm install nginxingress ingress-nginx/ingress-nginx
3633
```
3734

3835
The full configuration options for nginx [can be found here][nginx-configuration].
@@ -46,10 +43,16 @@ nginxingress-nginx-ingress-controller LoadBalancer 192.168.137.172 13
4643

4744
Caveats:
4845

46+
* Alternatively, use [arkade](https://github.com/alexellis/arkade) to install nginx-ingress.
47+
48+
```sh
49+
arkade install ingress-nginx
50+
```
51+
4952
* If you do not have a cloud provider for your Kubernetes cluster, but have a public IP, then you can install Nginx in "host-mode" and use the IP of one or more of your nodes for the DNS record.
5053

5154
```sh
52-
$ helm install stable/nginx-ingress --name nginxingress --set rbac.create=true,controller.hostNetwork=true controller.daemonset.useHostPort=true,dnsPolicy=ClusterFirstWithHostNet,controller.kind=DaemonSet
55+
$ helm install nginxingress ingress-nginx/ingress-nginx --set rbac.create=true,controller.hostNetwork=true controller.daemonset.useHostPort=true,dnsPolicy=ClusterFirstWithHostNet,controller.kind=DaemonSet
5356
```
5457

5558
Taken from tutorial: [Setup a private Docker registry with TLS on Kubernetes](https://github.com/alexellis/k8s-tls-registry)
@@ -58,6 +61,16 @@ Caveats:
5861

5962
[HTTPS for your local endpoints with inlets and Caddy](https://blog.alexellis.io/https-inlets-local-endpoints/)
6063

64+
### Install OpenFaaS
65+
66+
Follow the instructions found in the [OpenFaaS Helm Chart](https://github.com/openfaas/faas-netes/tree/master/chart/openfaas#deploy-openfaas). As part of these instructions you will create a basic-auth password to secure the Gateway's API and UI.
67+
68+
Alternatively, use [arkade](https://github.com/alexellis/arkade) to install openfaas:
69+
70+
```sh
71+
arkade install openfaas
72+
```
73+
6174
### Create a DNS record
6275

6376
Determine the public IP address which can be used to connect to Nginx:

0 commit comments

Comments
 (0)