首页 > 其他分享 >OpenFunction 0.7.0 发布: OpenFunction Gateway、多语言及 Helm 安装支持

OpenFunction 0.7.0 发布: OpenFunction Gateway、多语言及 Helm 安装支持

时间:2022-09-19 10:11:06浏览次数:92  
标签:函数 Kubernetes openfunction OpenFunction 0.7 Helm Gateway

OpenFunction 是一个开源的云原生 FaaS(Function as a
Service,函数即服务)平台,旨在帮助开发者专注于业务逻辑的研发。在过去的几个月里,OpenFunction 社区一直在努力工作,为 OpenFunction 0.7.0 版本的发布做准备。今天,我们非常高兴地宣布
OpenFunction 0.7.0 已经正式发布了!感谢社区各位小伙伴的贡献和反馈!

OpenFunction 0.7.0 为您带来了许多新功能,包括新增 OpenFunction Gateway 作为同步函数入口、 新增 Java 和 NodeJS 同步函数和异步函数支持、新增 Helm 安装方式。
同时, 我们对 OpenFunction 依赖的组件都进行了版本升级。

OpenFunction Gateway

OpenFunction 从 0.5.0 开始采用 Kubernetes Ingress 来提供同步函数的统一入口,并且必须安装一个 nginx-ingress-controller。

在 OpenFunction 0.7.0 中,我们基于 Kubernetes Gateway API 实现了 OpenFunction Gateway 替代之前基于
Kubernetes Ingress 的 Domain 来访问同步函数的方法。

OpenFunction Gateway 提供了更强大、更灵活的函数网关,包含以下特性:

  • 可以选择任意支持 Kubernetes Gateway APIGateway 实现,如 Contour, Istio, Apache APISIX, Envoy Gateway 等。
  • 可以选择安装默认的 Gateway 实现(Contour), 此时 OpenFunction 将自动创建 Kubernetes Gateway。OpenFunction 也可以使用您环境中现有的 Kubernetes Gateway,只需要您在 OpenFunction Gateway 中引用它即可。
  • 可以自定义访问函数的模式,如基于 host 的路由模式和基于 path 的路由模式,在您没有定义函数路由时 OpenFunction 默认提供基于 host 的路由模式来访问函数。
  • 可以在函数路由部分自定义流量应该如何到达函数,OpenFunction 基于 Gateway API HTTPRoute 为您提供了强大的函数路由功能。
  • 可以通过函数外部地址在集群外部访问函数,只需要在OpenFunction Gateway 中配置好集群外部可以访问的域名即可(同时支持 Magic DNS 和 Real DNS)。
  • 现在 OpenFunction 将流量直接转发到 Knative Revision 而不再经过 Knative 的 Gateway。 如果不需要直接访问 Knative 服务, 您可以忽略 Knative Domain 相关的错误。

将来,OpenFunction 将支持在函数的不同版本之间进行流量分发。

多语言支持

OpenFunction 社区一直在努力完善多语言的支持:

  • Go

    functions-framework-go 发布了 v0.4.0,支持在一个函数中定义多个子函数,并且可以通过不同的 Path 和 Method 分别调用。

  • Java

    functions-framework-java 现在支持同步函数和异步函数。

  • NodeJS

    functions-framework-nodejs 发布了 v0.5.0, 支持同步函数和异步函数,并且支持同步函数触发异步函数。

    我们将在近期发布 functions-framework-nodejs v0.6.0,为您带来更多功能比如插件机制、与 SkyWalking 集成等。

OpenFunction 将会在后续版本支持更多语言如 Python、Dotnet 等。

Helm 安装 OpenFunction 及所有依赖组件

原来基于 CLI 安装的方法已弃用。

现在 OpenFunction 支持通过 Helm 安装 OpenFunction 及所有依赖的组件,相比原来通过 CLI 安装的方式更加云原生, 并且解决了部分用户访问 Google Container Registry(gcr.io)镜像受限的问题, 并且将长期维护。

TL;DR

helm repo add openfunction https://openfunction.github.io/charts/
helm repo update
helm install openfunction openfunction/openfunction -n openfunction --create-namespace

依赖组件升级

Components OpenFunction 0.6.0 OpenFunction 0.7.0
Knative Serving 1.0.1 1.3.2
Dapr 1.5.1 1.8.3
Keda 2.4.0 2.7.1
Shipwright 0.6.1 0.10.0
Tekton Pipelines 0.30.0 0.37.0

本文由博客一文多发平台 OpenWrite 发布!

标签:函数,Kubernetes,openfunction,OpenFunction,0.7,Helm,Gateway
From: https://www.cnblogs.com/kubesphere/p/16706779.html

相关文章

  • 【云原生】Helm 常用命令(chart 安装、升级、回滚、卸载等操作)
    目录一、概述二、Helm仓库(helmrepo)1)添加chart仓库2)列出已添加的仓库3)从chart仓库中更新本地可用chart的信息4)删除一个或多个仓库三、创建chart(helmcreate)四、chart包安......
  • nginx njs 0.7.7发布
    最近nginxnjs模块发布了0.77版本了有一些新特性新特性nginx模块 njs对于http以及stream能力的扩展,js_import,js_path,js_set,js_var支持server以及location......
  • helm安装csi-driver-nfs-v4.1.0
    Applicationversionv4.1.0Chartversionv4.1.0获取chart包helmrepoaddcsi-driver-nfshttps://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/ma......
  • K8s包管理工具Helm v3(19)
    一、Helm概述官网:https://v3.helm.sh/zh/docs/https://helm.sh/helm官方的chart站点:https://hub.kubeapps.com/Helm是kubernetes的包管理工具,相当于linux环境......
  • helm安装csi-driver-smb-v1.9.0
    Applicationversionv1.9.0Chartversionv1.9.0获取chart包helmrepoaddcsi-driver-smbhttps://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/ma......
  • helm安装kube-state-metrics-4.16.0
    Applicationversion2.5.0Chartversion4.16.0获取chart包helmrepoaddprometheus-communityhttps://prometheus-community.github.io/helm-chartshelmfetch......
  • helm安装metrics-server-3.8.2
    Applicationversion0.6.1Chartversion3.8.2获取chart包helmrepoaddmetrics-serverhttps://kubernetes-sigs.github.io/metrics-server/helmfetchmetrics......
  • Helm安装ingress-nginx-4.2.3
    Applicationversion1.3.0Chartversion4.2.3获取chart包helmfetchingress-nginx/ingress-nginx--version4.2.3#或者curl-LOhttps://github.com/kubernete......
  • helm命令随记
    安装githubreleasehttps://github.com/helm/helm/releases压缩包里有helm文件,解压后将所在路径加入PATH环境变量。或者mv到/usr/bin目录下仓库配置添加存储库helm......
  • helm 部署kafka,zookeeper集群
    环境要求:k8s集群,helm组件实现:helmrepoaddbitnamihttps://charts.bitnami.com/bitnamihelmrepoupdatehelminstallkafkabitnami/kafka\ --setstatefulset.r......