In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about the native serverless example analysis of kubeless, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
Install kubeless (WITH RBAC ENABLED)
Export RELEASE=$ (curl-s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut-d'"'- f 4) kubectl create ns kubelesskubectl create-f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
Install UI (https://github.com/kubeless/kubeless-ui)
Kubectl create-f https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml
Install CLI tools in K8s server
Export OS=$ (uname-s | tr'[: upper:]'[: lower:]') curl-OL https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless_$OS-amd64.zip & &\ unzip kubeless_$OS-amd64.zip & &\ sudo mv bundles/kubeless_$OS-amd64/kubeless / usr/local/bin/
Case reference https://github.com/kubeless/kubeless/tree/master/examples
Deploy function
Kubeless function deploy hello-runtime python2.7\-from-file test.py\-handler test.hello
Call. Kubeless
Kubeless function call hello-- data 'Hello worldview'
It can also be called through UI
The default is the service,ClusterIP type exported to k8s. So you can call inside the kubernetes
$curl http://hello:8080-X POST-d'TSETTO send messages to TSETVs!
You can also export ingress. Support varies. If not, you can create an igress file manually.
After reading the above, do you have any further understanding of kubeless's native serverless sample analysis? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.