Code Monkey home page Code Monkey logo

Comments (3)

andresmgot avatar andresmgot commented on June 24, 2024 1

Oh, it seems that it is a 1.10 change: kubernetes/kubernetes#59884 (I checked it in 1.9). Thanks for reporting this, I will update the UI.

from kubeless-ui.

andresmgot avatar andresmgot commented on June 24, 2024

Hi @sonalkr132, did you run the UI using the manifest at?:

kubectl create -f https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml

Also, how are you accessing the UI? By default it expose a NodePort that is the one that can be used to access the service.

Finally note that both URLs are correct:

$ curl 127.0.0.1:8080/api/v1/namespaces/default/services/get-python:8080/proxy/
hello world
$ curl 127.0.0.1:8080/api/v1/proxy/namespaces/default/services/get-python:8080/
hello world

from kubeless-ui.

sonalkr132 avatar sonalkr132 commented on June 24, 2024

did you run the UI using the manifest at?:

yes, I used the same.

how are you accessing the UI?|

ui services exposes 3000 on host using NodePort as you mentioned. I am using <ui-host-ip>:3000 to access UI.

both URLs are correct:

can you please re-confirm this? I used following steps:

$ minikube start --kubernetes-version v1.10.0
$ kubectl config use-context minikube
$ export RELEASE=v0.6.0
$ kubectl create ns kubeless
$ kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-non-rbac-$RELEASE.yaml
$ cat <<EOT >> test.py
def foobar(event, context):
  print event
  return event['data']
EOT
$ kubeless function deploy get-python --runtime python2.7  --from-file test.py   --handler test.foobar
$ kubectl proxy -p 8080 &
$ curl -L --data '{"Another": "Echo"}' \
>   --header "Content-Type:application/json" \
>   localhost:8080/api/v1/proxy/namespaces/default/services/get-python:8080/
{  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {  },
  "status": "Failure",
  "message": "the server could not find the requested resource",
  "reason": "NotFound",
  "details": {  },
  "code": 404
}
$ curl --data '{"Another": "Echo"}'   --header "Content-Type:application/json"   localhost:8080/api/v1/namespaces/default/services/get-python:http-function-port/proxy/
{"Another": "Echo"}

from kubeless-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.