Deploy airgapped Serverless Functions with OpenFaaS
OpenFaaS Blog
by OpenFaaS Ltd
2d ago
In this tutorial, I’ll show you how to install OpenFaaS Standard or OpenFaaS for Enterprises into a private, airgapped network. There are no special tools required to perform an offline installation, but you will need a computer with Internet access in order to prepare for the installation. On your private network, you should have Kubernetes already installed, but if you don’t, K3s could be a good option and has documentation for offline installations. If you don’t have a private registry in your airgap or are unsure how to set one up, CNCF Harbor is a popular open-source choice. For testing ..read more
Visit website
How to transcribe audio with OpenAI Whisper and OpenFaaS
OpenFaaS Blog
by OpenFaaS Ltd
2M ago
In this tutorial we’ll show you how to transcribe audio files to text using OpenAI’s whisper model and a function written in Python. We’ll start off with GPU acceleration using an NVIDIA GPU and OpenFaaS installed on a K3s cluster. But we’ll also be showing you how you can run the same code using a CPU, which is more commonly available. Why is audio transcription useful? Common use-cases for transcribing audio could be a bot that summarises customer complaints during a Zoom call, collects negative product feedback from reviews on YouTube, or that generates a set of timestamps for YouTube video ..read more
Visit website
Stream OpenAI responses from functions using Server Sent Events
OpenFaaS Blog
by OpenFaaS Ltd
3M ago
OpenAI models can take some time to fully respond, so we’ll show you how to stream responses from functions using Server Sent Events (SSE). With the latest versions of the OpenFaaS helm charts, watchdog and python-flask template, you can now stream responses using Server Sent Events (SSE) directly from your functions. Prior to these changes, if a chat completion was going to take 10 seconds to emit several paragraphs of text, the user would have had to wait that long to see the first word. Now, the first word will be displayed as soon as it’s available from the OpenAI API. This is a great way ..read more
Visit website
Building Blocks for Source to URL with OpenFaaS
OpenFaaS Blog
by OpenFaaS Ltd
5M ago
Learn how to take source code from users and generate custom URLs using existing building blocks. All the component parts are readily available to take user-supplied source-code, produce an OpenFaaS function, and deploy it with its own custom HTTPS URL. The target user for this kind of workflow is a SaaS company, or an internal platform team who want to offer a “code to URL” experience for their users. Learn more about multi-tenant use of OpenFaaS here: Build a Multi-Tenant Functions Platform with OpenFaaS If you follow all of the steps in this guide, then you’ll be able to take code like this ..read more
Visit website
How to migrate Python functions from AWS Lambda to OpenFaaS and Kubernetes
OpenFaaS Blog
by OpenFaaS Ltd
6M ago
In this guide we’ll show you how to migrate functions from AWS Lambda to OpenFaaS and Kubernetes running on Akamai Cloud Computing. AWS Lambda was introduced by Amazon in 2014 and popularized the Functions As a Service (FaaS) model. OpenFaaS was introduced in 2016 and is of the most popular FaaS platforms for Kubernetes. Here’s what we hear users value in OpenFaaS over a hosted service: Portability - it can be installed on cloud or on-premises, just add Kubernetes. Developer experience - you can write functions in any language using containers, a common and portable format. And you can run th ..read more
Visit website
Trigger your functions from Kafka with Confluent Cloud
OpenFaaS Blog
by OpenFaaS Ltd
7M ago
Confluent’s hosted Kafka service is a quick and cost effective way to trigger your functions by events In this walk-through, we’ll set up a development account on Confluent Cloud for free access to an Apache Kafka cluster suitable for testing and development. We’ll then set up the Kafka Connector which is bundled with OpenFaaS Standard to trigger functions on new messages. Most of the time we see people publishing JSON, however binary and text data are also supported. So your function will receive a payload in the HTTP body, along with other metadata like the topic name, additional headers, pa ..read more
Visit website
The faster way to iterate on your OpenFaaS functions
OpenFaaS Blog
by OpenFaaS Ltd
7M ago
Learn how live reloading and local testing can help you iterate on functions faster with faas-cli. We’ll start by showing how testing functions on your own machine can help you iterate much more quickly than deploying each change to Kubernetes. That’s where faas-cli local-run comes in. Then, we’ll show the new --watch functionality in faas-cli up, for when it makes more sense to test and iterate within a cluster due to dependencies on other services. This is what the typical development lifecycle of an OpenFaaS function looks like: Make code changes. Publish a new container image. Deploy the ..read more
Visit website
How to set up production-ready K3s with OpenFaaS with Akamai Cloud Computing
OpenFaaS Blog
by OpenFaaS Ltd
7M ago
In this guide we’ll show you how to setup and configure K3s for production use with Akamai Cloud Computing. Then we’ll set up OpenFaaS so that we can deploy functions to the cluster. Did you know? Linode was acquired by Akamai, and is now being branded as “Akamai Cloud Computing”. The rebranding is still in-progress, so we’ll be referring to Linode throughout this article. K3s is a production-ready distribution of Kubernetes that was originally developed by Darren Shepherd at Rancher Labs, before donating it to the Cloud Native Computing Foundation (CNCF). It’s become one of the most popular ..read more
Visit website
How and why you should upgrade to the Function Custom Resource Definition (CRD)
OpenFaaS Blog
by OpenFaaS Ltd
8M ago
Whether you’re just starting out with OpenFaaS or have been using it for a while, you may be missing out with the Function CRD. A quick history of OpenFaaS Kubernetes support Around 2017 Kubernetes adopted a new pattern called the Custom Resource Definition (CRD), this was a graduation of a prior work called Third Party Resources. Prior to either of these efforts, any vendor wanting to integrate with Kubernetes had to work with all the standard APIs and somehow decorate them with metadata to show that they belonged to a certain integration. With the CRD, came the Operator pattern. You create a ..read more
Visit website
Meet the next-gen dashboard we built for OpenFaaS in production
OpenFaaS Blog
by OpenFaaS Ltd
8M ago
Learn why we built a new UI dashboard using React, what’s different and how you can make use of it. You may be familiar with the original UI that I built for OpenFaaS in 2017. It was focused on both invoking functions and deploying new ones from the Function Store. It used the original 1.x version of Angular.js and was built within the first year of the project, it served us well, but the underlying UI frameworks have moved on considerably since its inception. The classic UI, which is part of faasd and OpenFaaS Community Edition (CE) is now in code-freeze which means it isn’t receiving chang ..read more
Visit website

Follow OpenFaaS Blog on FeedSpot

Continue with Google
Continue with Apple
OR