You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2021-05-19-istio.md
+54-6Lines changed: 54 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,10 @@ description: "Learn how to enable Istio for OpenFaaS to take advantage of Mutual
4
4
date: 2021-05-12
5
5
image: /images/2021-05-istio/background.jpg
6
6
categories:
7
-
- live
8
-
- use-cases
7
+
- security
8
+
- enterprise
9
9
- functions
10
+
- istio
10
11
author_staff_member: alex
11
12
dark_background: true
12
13
@@ -33,8 +34,8 @@ Thank you to [John Howard](https://github.com/howardjohn) from Google for helpin
33
34
34
35
In this blog post we'll give you a quick introduction so that you can start integrating Istio with OpenFaaS. We'll then go on to show you how to measure the resource consumption of the cluster, and how to create a TLS certificate for the Istio Gateway.
35
36
36
-
There are many service mesh products available. Other popular options include: [Linkerd](https://linkerd.io), [Kuma](https://kuma.io/) and [Consul](https://learn.hashicorp.com/tutorials/consul/service-mesh).
37
-
37
+
> There are many service mesh products available. Other popular options include: [Linkerd](https://linkerd.io), [Kuma](https://kuma.io/) and [Consul](https://learn.hashicorp.com/tutorials/consul/service-mesh).
38
+
>
38
39
> You may also like the workshop we created to show how to do mutual TLS and traffic shifting with [OpenFaaS and Linkerd](https://github.com/openfaas/openfaas-linkerd-workshop).
39
40
40
41
## Tutorial
@@ -78,7 +79,7 @@ arkade install openfaas \
78
79
79
80
At this point everything is configured and you can use OpenFaaS.
80
81
81
-
### Deploy a test function
82
+
### Access OpenFaaS with an Istio Gateway
82
83
83
84
Create an Istio Gateway so that we can connect to the OpenFaaS Gateway and log in.
If this seems like a lot of infrastructure for running a single function, then you may be interested in taking a look at a more minimal stack with [faasd](https://github.com/openfaas/faasd). faasd runs on a single host and makes different tradeoffs so that it requires very minimal resources to run functions.
236
+
197
237
### Getting a TLS certificate
198
238
199
239
Let's now get a TLS certificate so that we can serve traffic to clients securely.
> You can also see the certificate if you open your browser
366
+
324
367
## Wrapping up
325
368
326
369
In a short period of time we were able to deploy Istio and OpenFaaS on a local KinD cluster and see Envoy's sidecar providing mutual TLS encryption. We then went on to explore the additional resource consumption added by using Istio, and finally showed you how to create a TLS certificate for external traffic using a free certificate from Let's Encrypt.
327
370
328
-
If you wanted to take things further, you could look into more advanced policies for routing and traffic shifting or partial weighting using [VirtualServices](https://istio.io/latest/docs/reference/config/networking/virtual-service/) for individual functions.
371
+
Istio is feature-rich, with extensive documentation and examples.
372
+
373
+
I found the FAQ answered many questions I had whilst preparing this tutorial and recommend taking a read: [Istio FAQ](https://istio.io/latest/about/faq/).
374
+
375
+
A good place to start exploring what is possible, would be the [Task-based section](https://istio.io/latest/docs/tasks/) of the documentation. For instance, you could look into more advanced policies for routing and traffic shifting or partial weighting using [VirtualServices](https://istio.io/latest/docs/reference/config/networking/virtual-service/) for individual functions.
329
376
330
377
> You may also like the workshop we created to show how to do mutual TLS and traffic shifting with [OpenFaaS and Linkerd](https://github.com/openfaas/openfaas-linkerd-workshop).
331
378
332
379
Do you have questions, comments or suggestions?
333
380
334
381
* Find out more about [Istio](https://istio.io)
382
+
* Browse the [OpenFaaS documentation](https://docs.openfaas.com)
0 commit comments