1 helm repo add nuclio https://nuclio.github.io/nuclio/charts
2 kubectl create namespace nuclio
- copy registry to nuclio namespace from existing namespace
1kubectl get secret repo-registry -n dev-ns -o yaml \
2| sed s/"namespace: dev-ns"/"namespace: nuclio"/ \
3| kubectl apply -f -
1 helm install nuclio \
2 --set registry.secretName=repo-registry \
3 --set registry.pushPullUrl=localhost/nucalio \
4 nuclio/nuclio -n nuclio
1 kubectl -n nuclio port-forward $(kubectl get pods -n nuclio -l nuclio.io/app=dashboard -o jsonpath='{.items[0].metadata.name}') 8070:8070
- testing the function in nuclio console web ui
1package main
2
3import (
4 "github.com/nuclio/nuclio-sdk-go"
5)
6
7func Handler(context *nuclio.Context, event nuclio.Event) (interface{}, error) {
8 context.Logger.Info("This is an unstrucured %s", "log")
9
10 return nuclio.Response{
11 StatusCode: 200,
12 ContentType: "application/text",
13 Body: []byte("Hello, from Nuclio :]. Okay let me change and update somethings"),
14 }, nil
15}