kubectl proxy -p 8080 & curl -L --data '{"Another": "Echo"}'
--header "Content-Type:application/json"
localhost:8080/api/v1/namespaces/default/services/hello:http-function-port/proxy/
{"Another": "Echo"}
ssh -L30000:localhost:30000 -L30001:172.31.10.3:31520 -L8443:172.31.10.3:8443 -i ~/aws/aws-test.pem [email protected]
sudo apt-get update -y && sudo apt-get install -y docker.io
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube version
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
source <(kubectl completion bash)
sudo minikube start --vm-driver=none
minikube status
export RELEASE=$(curl -s https://api.github.com/repos/kubeless/kubeless/releases/latest | grep tag_name | cut -d '"' -f 4) kubectl create ns kubeless kubectl create -f https://github.com/kubeless/kubeless/releases/download/$RELEASE/kubeless-$RELEASE.yaml
sudo apt install unzip
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/
kubectl create -f https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml
minikube service ui -n kubeless --url
ssh -L30001:kubeless-ip:kubeless-port
https://127.0.0.1:8443/api/v1/namespaces/kubeless/services/ui:31520/proxy/
http://kubernetes_master_address/api/v1/namespaces/namespace_name/services/service_name[:port_name]/proxy
mkdir /opt/registry/auth docker run --entrypoint htpasswd registry:2 -Bbn admin design >> /opt/registry/auth/htpasswd
docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker build . -f Dockerfile.runtime -t defrox/runtime:v0.3
docker tag runtime:v0.1 defrox/runtime:v0.1
docker push defrox/runtime:v0.1
nano test.py
def score(event, context): print event return event['data']
kubeless function deploy --from-file test.py --handler test.score --runtime python2.8 score
kubeless function ls hello
kubeless function call score --data '{"file": "lib/test.csv"}'
kubectl proxy -p 8080 &
curl -L --data '{"file": "lib/test.csv"}'
--header "Content-Type:application/json"
localhost:8080/api/v1/namespaces/default/services/hello:http-function-port/proxy/
{"Another": "Echo"}
minikube stop
minikube delete