Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Python function triggered by RabbitMQ messages.
# kubeless/demo/python-rabbitmq.yaml
apiVersion: kubeless.io/v1beta1
kind: Function
metadata:
name: rabbit-python
namespace: default
spec:
runtime: python3.8
handler: handler.main
source: |
def main(event, context):
print("Received RabbitMQ message:", event.body)
events:
rabbit-event:
type: rabbitmq
metadata:
exchange: test-exchange
queue: test-queueKubeless is a Kubernetes-native serverless framework that allows developers to deploy small, single-purpose functions without managing infrastructure. It leverages Kubernetes resources to handle scaling, routing, and monitoring.
Origin & Creator
Kubeless was created by Bitnami in 2016 as an open-source serverless framework for Kubernetes.
Industrial Note
Kubeless is ideal for teams already using Kubernetes who want to adopt serverless patterns without introducing new infrastructure or cloud dependencies.