{"id":2492,"date":"2017-08-27T19:10:49","date_gmt":"2017-08-27T12:10:49","guid":{"rendered":"https:\/\/engineerball.com\/?p=2492"},"modified":"2020-09-29T23:02:14","modified_gmt":"2020-09-29T16:02:14","slug":"start-serverless-on-kubernetes-with-openfaas","status":"publish","type":"post","link":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html","title":{"rendered":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS"},"content":{"rendered":"<p>Serverless \u0e04\u0e37\u0e2d \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 Server \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e40\u0e25\u0e22\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e21\u0e35\u0e41\u0e04\u0e48\u0e42\u0e04\u0e49\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e1e\u0e2d \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e01\u0e47\u0e42\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 serverless \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 <a href=\"https:\/\/aws.amazon.com\/lambda\/\">AWS Lambda<\/a> \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35 Event \u0e40\u0e23\u0e35\u0e22\u0e01\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e01\u0e47\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e44\u0e1b\u0e2a\u0e19\u0e43\u0e08\u0e43\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07 server \u0e01\u0e31\u0e19\u0e40\u0e25\u0e22\u0e17\u0e35\u0e40\u0e14\u0e35\u0e22\u0e27 \u0e0b\u0e36\u0e48\u0e07 Serverless \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e40\u0e25\u0e47\u0e01\u0e01\u0e27\u0e48\u0e32 Microservice \u0e40\u0e2a\u0e35\u0e22\u0e2d\u0e35\u0e01<\/p>\n<p>\u0e16\u0e49\u0e32\u0e2b\u0e32\u0e01\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e2d\u0e22\u0e32\u0e01\u0e08\u0e30\u0e40\u0e2a\u0e35\u0e22\u0e04\u0e48\u0e32\u0e43\u0e0a\u0e49\u0e08\u0e48\u0e32\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e25\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 AWS Lambda \u0e01\u0e47\u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e40\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22  \u0e0b\u0e36\u0e48\u0e07 <a href=\"https:\/\/github.com\/alexellis\/faas\">OpenFaaS<\/a> \u0e40\u0e1b\u0e47\u0e19 Framework \u0e15\u0e31\u0e27\u0e19\u0e36\u0e07\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 serverless \u0e14\u0e49\u0e27\u0e22 Docker \u0e41\u0e25\u0e30\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e17\u0e31\u0e49\u0e07 (Docker Swarm)[https:\/\/docs.docker.com\/engine\/swarm\/]  \u0e41\u0e25\u0e30 <a href=\"https:\/\/kubernetes.io\/\">Kubernetes<\/a> \u0e40\u0e14\u0e35\u0e4b\u0e22\u0e27\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e25\u0e2d\u0e07\u0e40\u0e25\u0e48\u0e19 OpenFaaS \u0e01\u0e31\u0e1a <a href=\"https:\/\/kubernetes.io\/\">Kubernetes<\/a> \u0e01\u0e31\u0e19<\/p>\n<p>\u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e1c\u0e21\u0e08\u0e30\u0e43\u0e0a\u0e49 <a href=\"https:\/\/github.com\/kubernetes\/minikube\">minikube<\/a> \u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Kubernetes \u0e41\u0e1a\u0e1a\u0e40\u0e25\u0e47\u0e01\u0e46 \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e31\u0e19\u0e19\u0e30<\/p>\n<p>** \u0e40\u0e23\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07 minikube \u0e41\u0e25\u0e30 openfaas**<\/p>\n<pre><code class=\"bash\">$ minikube start\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-44-14.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-44-14.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2510\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-44-14.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-44-14-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e23\u0e2d\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32 Kubernetes \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/p>\n<pre><code class=\"bash\">$ kubectl get nodes\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-45-32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-45-32.png\" alt=\"\" width=\"451\" height=\"109\" class=\"alignnone size-full wp-image-2509\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-45-32.png 451w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-45-32-420x102.png 420w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/a><\/p>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d Kubernetes \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 apply \u0e04\u0e48\u0e32 \u0e02\u0e2d\u0e07 Docker<\/p>\n<pre><code class=\"bash\">$ eval $(minikube docker-env)\n<\/code><\/pre>\n<p>\u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e33\u0e01\u0e32\u0e23 Deploy OpenFaaS<\/p>\n<pre><code class=\"bash\">$ git clone https:\/\/github.com\/alexellis\/faas-netes\n$ cd faas-netes\n$ kubectl apply -f .\/faas.yml,monitoring.yml,rbac.yml\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-46-19.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-46-19.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2508\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-46-19.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-46-19-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e23\u0e2d\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e17\u0e38\u0e01\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e08\u0e30 deploy \u0e40\u0e2a\u0e23\u0e47\u0e08<\/p>\n<pre><code class=\"bash\">$ kubectl get deployments,pods\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-47-36.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-47-36.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2507\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-47-36.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-47-36-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e17\u0e38\u0e01\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27 \u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e32\u0e01 OpenFaaS \u0e43\u0e19 Kubernetes \u0e01\u0e47\u0e04\u0e37\u0e2d\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 API Gateway \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e23\u0e32\u0e08\u0e30\u0e19\u0e33\u0e21\u0e32\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23 Deploy code<\/p>\n<pre><code class=\"bash\">$ kubectl get nodes -o json | jq '.items[] | .status.addresses[0].address'\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-12.png\" alt=\"\" width=\"734\" height=\"111\" class=\"alignnone size-full wp-image-2506\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-12.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-12-420x64.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e08\u0e30\u0e44\u0e14\u0e49 IP \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19 192.168.99.100<\/p>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e14\u0e39 service \u0e17\u0e35\u0e48\u0e42\u0e14\u0e19 expose \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e08\u0e32\u0e01 Kubernetes<\/p>\n<pre><code class=\"bash\">$ kubectl get svc\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-45.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-45.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2505\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-45.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-48-45-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e27\u0e48\u0e32\u0e15\u0e31\u0e27 gateway \u0e42\u0e14\u0e19 expose \u0e21\u0e32\u0e14\u0e49\u0e27\u0e22 port \u0e40\u0e25\u0e02 <strong>31112<\/strong> \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 <strong>API Gateway<\/strong> \u0e02\u0e2d\u0e07 OpenFaaS \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e04\u0e37\u0e2d <a href=\"http:\/\/192.168.99.100:31112\">http:\/\/192.168.99.100:31112<\/a><\/p>\n<p>\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e14\u0e39\u0e17\u0e35\u0e48\u0e2b\u0e19\u0e49\u0e32 UI \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"http:\/\/192.168.99.100:31112\/ui\/\">http:\/\/192.168.99.100:31112\/ui\/<\/a><br \/>\n<a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42-744x428.png\" alt=\"\" width=\"744\" height=\"428\" class=\"alignnone size-medium wp-image-2504\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42-744x428.png 744w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42-420x241.png 420w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42-768x441.png 768w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-49-42.png 1025w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n<p>\u0e16\u0e49\u0e32\u0e21\u0e32\u0e16\u0e36\u0e07\u0e15\u0e23\u0e07\u0e19\u0e35\u0e49\u0e41\u0e2a\u0e14\u0e07\u0e27\u0e48\u0e32\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 OpenFaaS \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>** \u0e21\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 Code \u0e01\u0e31\u0e19\u0e14\u0e35\u0e01\u0e27\u0e48\u0e32 **<br \/>\n\u0e0b\u0e36\u0e48\u0e07\u0e40\u0e08\u0e49\u0e32 OpenFaaS \u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e2b\u0e25\u0e32\u0e22\u0e46 \u0e20\u0e32\u0e29\u0e32 \u0e44\u0e21\u0e48\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 Python, .NET, C#, Ruby, NodeJS \u0e40\u0e14\u0e35\u0e4b\u0e22\u0e27\u0e40\u0e23\u0e32\u0e08\u0e30\u0e21\u0e32\u0e25\u0e2d\u0e07\u0e40\u0e02\u0e35\u0e22\u0e19 Function \u0e14\u0e49\u0e27\u0e22 Python \u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e17\u0e33\u0e07\u0e32\u0e19\u0e1a\u0e19 Serverless \u0e01\u0e31\u0e19 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48\u0e1c\u0e21\u0e08\u0e30\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 Fibonacci-as-a-Service \u0e14\u0e49\u0e27\u0e22 python<\/p>\n<p>\u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e35\u0e17\u0e35\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 faas-cli \u0e01\u0e48\u0e2d\u0e19<\/p>\n<pre><code class=\"bash\">$ curl -sSL https:\/\/cli.openfaas.com | sudo sh\n<\/code><\/pre>\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07 folder \u0e17\u0e35\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 functions<\/p>\n<pre><code class=\"bash\">$ mkdir -p ~\/sample-faas\/functions\n$ cd $_\n$ mkdir fib\n<\/code><\/pre>\n<p>\u0e20\u0e32\u0e22\u0e43\u0e19 folder fib \u0e43\u0e2b\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 handler.py \u0e21\u0e35\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre><code class=\"py\">def fib(n):\n    if n &lt;= 1: return n\n    else: return fib(n-1) + fib(n-2)\n\ndef handle(st):\n    n = int(st)\n\n    output = []\n    for i in range(n):\n        output.append(str(fib(i)))\n    print(', '.join(output))\n<\/code><\/pre>\n<p>\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19 \u0e43\u0e2b\u0e49\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e02\u0e49\u0e32\u0e07\u0e19\u0e2d\u0e01 folder<\/p>\n<pre><code class=\"bash\">$ cd ~\/sample-faas\/functions\/\n<\/code><\/pre>\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e21\u0e35\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 stack.yml \u0e21\u0e35\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre><code class=\"yaml\">provider:\n  name: faas\n  gateway: http:\/\/192.168.99.100:31112\n\nfunctions:\n  fib:\n    lang: python\n    handler: .\/fib\/\n    image: engineerball\/faas-python-fib\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-51-03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-51-03.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2503\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-51-03.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-51-03-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e04\u0e48\u0e32 gateway \u0e04\u0e37\u0e2d\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23 deploy openFaaS \u0e43\u0e19 Kubernetes<\/p>\n<p>functions \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e1a\u0e2d\u0e01\u0e27\u0e48\u0e32\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07 Function \u0e2d\u0e30\u0e44\u0e23 \u0e41\u0e25\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e17\u0e35\u0e48 path \u0e44\u0e2b\u0e19 \u0e0b\u0e36\u0e48\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e21\u0e31\u0e19\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e1b\u0e47\u0e19 Docker Image \u0e41\u0e25\u0e30\u0e2d\u0e31\u0e1e\u0e42\u0e2b\u0e25\u0e14\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07 Docker Hub<\/p>\n<p>\u0e17\u0e33\u0e01\u0e32\u0e23 Build Function<\/p>\n<pre><code class=\"bash\">$ faas-cli -action build -f .\/stack.yml\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-52-12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-52-12.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2502\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-52-12.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-52-12-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 Push image \u0e02\u0e36\u0e49\u0e19 Registry<\/p>\n<pre><code class=\"bash\">$ faas-cli -action push -f .\/stack.yml\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-10.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2501\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-10.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-10-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27 Deploy \u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e43\u0e19 OpenFaaS \u0e20\u0e32\u0e22\u0e43\u0e19 Kubernetes<\/p>\n<pre><code class=\"bash\">$ faas-cli -action deploy -f .\/stack.yml\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-29.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-29.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2500\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-29.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-29-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d deploy \u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27\u0e08\u0e30\u0e44\u0e14\u0e49 URL \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23 Deploy \u0e21\u0e32\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<br \/>\n\u0e17\u0e33\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Fibonancci-as-a-Service<\/p>\n<pre><code class=\"bash\">$ curl http:\/\/192.168.99.100:31112\/function\/fib -d \"17\" \n0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987\n<\/code><\/pre>\n<p><a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-42.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-42.png\" alt=\"\" width=\"734\" height=\"440\" class=\"alignnone size-full wp-image-2499\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-42.png 734w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-18-53-42-420x252.png 420w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01\u0e17\u0e35\u0e48\u0e2b\u0e19\u0e49\u0e32 ui \u0e02\u0e2d\u0e07 openfaas<br \/>\n<a href=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/engineerball.com\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59-744x544.png\" alt=\"\" width=\"744\" height=\"544\" class=\"alignnone size-medium wp-image-2518\" srcset=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59-744x544.png 744w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59-420x307.png 420w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59-768x561.png 768w, https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/Screenshot-from-2017-08-27-19-06-59.png 1126w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n<p>** \u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22 **<br \/>\n\u0e19\u0e35\u0e48\u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Serverless \u0e1c\u0e21\u0e27\u0e48\u0e32\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e23\u0e19\u0e14\u0e4c\u0e43\u0e2b\u0e21\u0e48\u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e40\u0e0a\u0e48\u0e19\u0e19\u0e35\u0e49 \u0e2b\u0e32\u0e01\u0e43\u0e04\u0e23\u0e2a\u0e19\u0e43\u0e08\u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e15\u0e34\u0e14\u0e15\u0e32\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 github \u0e17\u0e35\u0e48 <a href=\"https:\/\/github.com\/alexellis\/faas\">https:\/\/github.com\/alexellis\/faas<\/a> \u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Serverless \u0e04\u0e37\u0e2d \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 Server \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e40\u0e25\u0e22\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e21\u0e35\u0e41\u0e04\u0e48\u0e42\u0e04\u0e49\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e1e\u0e2d \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e01\u0e47\u0e42\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 serverless \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 AWS Lambda \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35 Event \u0e40\u0e23\u0e35\u0e22\u0e01\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\">Read the post<span class=\"screen-reader-text\">\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":2497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[352,5],"tags":[338,396,394,393,398,397,395],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL\" \/>\n<meta property=\"og:description\" content=\"Serverless \u0e04\u0e37\u0e2d \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 Server \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e40\u0e25\u0e22\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e21\u0e35\u0e41\u0e04\u0e48\u0e42\u0e04\u0e49\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e1e\u0e2d \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e01\u0e47\u0e42\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 serverless \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 AWS Lambda \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35 Event \u0e40\u0e23\u0e35\u0e22\u0e01\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\" \/>\n<meta property=\"og:site_name\" content=\"EngineerBALL\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineerball\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-27T12:10:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-29T16:02:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"689\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"ball\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@engineerball\" \/>\n<meta name=\"twitter:site\" content=\"@engineerball\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ball\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\",\"url\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\",\"name\":\"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL\",\"isPartOf\":{\"@id\":\"https:\/\/engineerball.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg\",\"datePublished\":\"2017-08-27T12:10:49+00:00\",\"dateModified\":\"2020-09-29T16:02:14+00:00\",\"author\":{\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e\"},\"breadcrumb\":{\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage\",\"url\":\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg\",\"contentUrl\":\"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg\",\"width\":1200,\"height\":689},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/engineerball.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/engineerball.com\/blog\/#website\",\"url\":\"https:\/\/engineerball.com\/blog\/\",\"name\":\"EngineerBALL\",\"description\":\"Damn Those Sweet Memories\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/engineerball.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e\",\"name\":\"ball\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/engineerball.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g\",\"caption\":\"ball\"},\"description\":\"Teerapat Khunpech Live, Tech, Beers, Bike, Cafe Racer, Docker, Devops, Eco-System\",\"sameAs\":[\"https:\/\/engineerball.com\",\"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn\",\"https:\/\/twitter.com\/engineerball\"],\"url\":\"https:\/\/engineerball.com\/blog\/author\/ball\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html","og_locale":"en_US","og_type":"article","og_title":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL","og_description":"Serverless \u0e04\u0e37\u0e2d \u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 Server \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e40\u0e25\u0e22\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e21\u0e35\u0e41\u0e04\u0e48\u0e42\u0e04\u0e49\u0e14\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e1e\u0e2d \u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e32\u0e01\u0e47\u0e42\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e02\u0e36\u0e49\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 serverless \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19 AWS Lambda \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e42\u0e04\u0e49\u0e14\u0e40\u0e23\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27 \u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e19\u0e35\u0e49\u0e01\u0e47\u0e08\u0e30\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35 Event \u0e40\u0e23\u0e35\u0e22\u0e01\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19&#8230;","og_url":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html","og_site_name":"EngineerBALL","article_publisher":"https:\/\/www.facebook.com\/engineerball","article_author":"https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn","article_published_time":"2017-08-27T12:10:49+00:00","article_modified_time":"2020-09-29T16:02:14+00:00","og_image":[{"width":1200,"height":689,"url":"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg","type":"image\/jpeg"}],"author":"ball","twitter_card":"summary_large_image","twitter_creator":"@engineerball","twitter_site":"@engineerball","twitter_misc":{"Written by":"ball","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html","url":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html","name":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS - EngineerBALL","isPartOf":{"@id":"https:\/\/engineerball.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage"},"image":{"@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage"},"thumbnailUrl":"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg","datePublished":"2017-08-27T12:10:49+00:00","dateModified":"2020-09-29T16:02:14+00:00","author":{"@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e"},"breadcrumb":{"@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#primaryimage","url":"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg","contentUrl":"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg","width":1200,"height":689},{"@type":"BreadcrumbList","@id":"https:\/\/engineerball.com\/blog\/2017\/08\/27\/start-serverless-on-kubernetes-with-openfaas.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/engineerball.com\/blog"},{"@type":"ListItem","position":2,"name":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Serverless \u0e1a\u0e19 Kubernetes \u0e14\u0e49\u0e27\u0e22 OpenFaaS"}]},{"@type":"WebSite","@id":"https:\/\/engineerball.com\/blog\/#website","url":"https:\/\/engineerball.com\/blog\/","name":"EngineerBALL","description":"Damn Those Sweet Memories","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/engineerball.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/415320d0da2d392375528001aa6ea53e","name":"ball","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/engineerball.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8d00c01f55942d7c8f2dbc70a9cefe0?s=96&d=monsterid&r=g","caption":"ball"},"description":"Teerapat Khunpech Live, Tech, Beers, Bike, Cafe Racer, Docker, Devops, Eco-System","sameAs":["https:\/\/engineerball.com","https:\/\/www.facebook.com\/troueblemaker.khunpech?ref=tn_tnmn","https:\/\/twitter.com\/engineerball"],"url":"https:\/\/engineerball.com\/blog\/author\/ball"}]}},"jetpack_featured_media_url":"https:\/\/engineerball.com\/blog\/wp-content\/uploads\/2017\/08\/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f4446726b46344e586f41414a774e322e6a7067.jpg","jetpack_shortlink":"https:\/\/wp.me\/p3Nmbl-Ec","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts\/2492"}],"collection":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/comments?post=2492"}],"version-history":[{"count":15,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts\/2492\/revisions"}],"predecessor-version":[{"id":2529,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/posts\/2492\/revisions\/2529"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/media\/2497"}],"wp:attachment":[{"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/media?parent=2492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/categories?post=2492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engineerball.com\/blog\/wp-json\/wp\/v2\/tags?post=2492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}