kubeless | Kubernetes Native Serverless Framework | Serverless library
kandi X-RAY | kubeless Summary
kandi X-RAY | kubeless Summary
kubeless is a Kubernetes-native serverless framework that lets you deploy small bits of code without having to worry about the underlying infrastructure plumbing. It leverages Kubernetes resources to provide auto-scaling, API routing, monitoring, troubleshooting and more. Kubeless stands out as we use a Custom Resource Definition to be able to create functions as custom kubernetes resources. We then run an in-cluster controller that watches these custom resources and launches runtimes on-demand. The controller dynamically injects the functions code into the runtimes and make them available over HTTP or via a PubSub mechanism.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of kubeless
kubeless Key Features
kubeless Examples and Code Snippets
Community Discussions
Trending Discussions on kubeless
QUESTION
I'm attempting to trigger a Kubeless function (written as a Java method) and it doesn't seem to be working. I've tried everything I can think to try, but I've run out of ideas. Below is the Java method (it's basically an echo service, for now).
...ANSWER
Answered 2020-Jul-14 at 22:17I nerded out on this and there's an issue with the Kubeless kafka-trigger. Essentially, I'm getting this log when the message is picked up by the controller and tries to trigger the function:
QUESTION
I'm building a test automation tool that needs to launch a set of tests, collect logs and results. My plan is to build container with necessary dependency for test framework and launch them in Kubernetes.
Is there any application that abstracts complexity of managing the pod lifecycle and provides a simple API to achieve this use-case preferably through API? Basically my test scheduler need to deploy a container in kubernetes, launch a test and collect log files at the end.
I already looked at Knative and kubeless - they seem to be complex and may over-complicate what I'm trying to do here.
...ANSWER
Answered 2020-May-20 at 07:23Try looking at https://microk8s.io/, it was built for those purposes.
And you can talk to the API server via the rest API same as in every k8s cluster.
QUESTION
I'm having trouble deleting custom resource definition. I'm trying to upgrade kubeless from v1.0.0-alpha.7 to v1.0.0-alpha.8.
I tried to remove all the created custom resources by doing
...ANSWER
Answered 2018-Aug-24 at 22:26So it turns out , the root cause was that Custom resources with finalizers can "deadlock". The CustomResource "functions.kubeless.io" had a
Finalizers:
customresourcecleanup.apiextensions.k8s.io
and this is can leave it in a bad state when deleting.
https://github.com/kubernetes/kubernetes/issues/60538
I followed the steps mentioned in this workaround and it now gets deleted. Hope this helps anyone else who runs into this.
QUESTION
I have minikube v0.26.0 version and kubectl v1.10.1 version and localKube v1.8.0
i get the following error when i try to deploy the kubeless ui
ANSWER
Answered 2020-Feb-16 at 16:46As the comment says, you're using a version of Kubernetes that's very old. Deployment
wasn't available under apps/v1
until Kubernetes 1.9, and you appear to be using 1.8.
If you want to solve this problem without upgrading your cluster, you'll need to replace the apiVersion
value in all of your Deployment
objects with one of the older paths:
QUESTION
I am trying to run kafka with kubeless but I get this error pod has unbound immediate PersistentVolumeClaims. I have created a persistent volume using rook and ceph and trying to use this perisistent volume with kubeless kafka. However when I run the code I get "pod has unbound persistent volume claims"
What am I doing wrong here?
Persistent Volument for Kafka ...ANSWER
Answered 2019-Aug-13 at 19:14I got it working.. For someone who faces the same problem this would be useful..
This uses rook-ceph storage kubeless kafka
QUESTION
I have a kubeless function written in nodejs and I'd like to upload a file using multipart, is it even possible? Or do I have to use base64?
...ANSWER
Answered 2019-Aug-08 at 21:57This feature was not developed in that moment. It's now possible: https://github.com/kubeless/runtimes/blob/master/stable/nodejs/examples/hello-multipart.js
QUESTION
I am trying to deploy a kubeless function using serverless. I created a kubernetes cluster using minikube and I am trying to follow this link following which
- I installed serverless
- created a template kubeless-nodejs
- installed plugins with
npm install
- and tried to deploy using
serverless deploy -v
but I am getting an error
...ANSWER
Answered 2018-Aug-30 at 07:24I found the issue. I had to deploy kubeless to the Kubernetes cluster I had to do this for that:
QUESTION
I provisioned a managed GKE cluster (Kubernetes version 1.9.4-gke.1) with basic authentication disabled. When i try to create RBAC configuration (for running my ingress controller) I get a following error:
Error from server (Forbidden): clusterrolebindings.rbac.authorization.k8s.io is forbidden: User "XXX@gmail.com" cannot create clusterrolebindings.rbac.authorization.k8s.io at the cluster scope: Required "container.clusterRoleBindings.create" permission.
I found two related questions:
- GKE clusterrolebinding for cluster-admin fails with permission error
- User "xxx" cannot create clusterrolebindings.rbac.authorization.k8s.io at the cluster scope
First one contains a solution when basic authentication is enabled for the cluster which is not my case. And second question does not have an answer.
My user is not owner of the GCP project but it has editor
role in the project. I found that this behavior was observed by others.
Please, advise how can I add the missing permission or otherwise defined RBAC on the GKE cluster when the cluster has basic authentication disabled.
...ANSWER
Answered 2018-Apr-11 at 21:07To create that ClusterRoleBinding
, the caller must have container.clusterRoleBindings.create
permission through GCP IAM. Only the OWNER
and Kubernetes Admin
IAM Roles contain that permission (because it allows modification of access control on your GKE clusters).
So, to allow person@company.com
to run that command, they must be granted one of those roles. I'd recommend the Kubernetes Admin
role.:
QUESTION
I am trying to setup horizontal pod autoscaling using custom-metrics. For support of custom metrics in kuberenetes 1.8.1, I need to enable the aggregation layer by setting the following flags in kube-apiserver:
...ANSWER
Answered 2017-Dec-20 at 17:21Support for the aggregation layer has been added a couple weeks ago, so no configuration should be necessary for a new cluster. Please see details here: https://github.com/Azure/AKS/issues/54
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kubeless
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page