huijunwu commented on pull request #3555:
URL: https://github.com/apache/incubator-heron/pull/3555#issuecomment-653847732
Tests with 1) minikube, 2) helm
0] environment:
```
$ hostnamectl
Icon name: computer-desktop
Chassis: desktop
Operating System: Ubuntu 20.04 LTS
Kernel: Linux 5.4.0-40-generic
Architecture: x86-64
$ git status
On branch huijunwu/20200702
$ docker --version
Docker version 19.03.8, build afacb8b7f0
./docker/scripts/build-artifacts.sh ubuntu20.04 0.0.0 ~/heron-release
~/heron-release/heron-install-0.0.0-ubuntu20.04.sh --user
$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5",
GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean",
BuildDate:"2020-06-26T03:47:41Z", GoVersion:"go1.13.9", Compiler:"gc",
Platform:"linux/amd64"}
$ minikube version
minikube version: v1.11.0
commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd
eval $(minikube -p minikube docker-env)
./docker/scripts/build-docker.sh ubuntu20.04 0.0.0 ~/heron-release
$ helm version
version.BuildInfo{Version:"v3.2.4",
GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean",
GoVersion:"go1.13.12"}
kubectl proxy -p 8001 &
```
1] minikube:
```
DIR=./deploy/kubernetes/minikube
sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/zookeeper.yaml >
/tmp/zookeeper.yaml
sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/tools.yaml >
/tmp/tools.yaml
sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/apiserver.yaml >
/tmp/apiserver.yaml
kubectl create -f /tmp/zookeeper.yaml
kubectl get pods
kubectl create -f ${DIR}/bookkeeper.yaml
kubectl create -f /tmp/tools.yaml
kubectl create -f /tmp/apiserver.yaml
# submit a job
curl
http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy/api/v1/version
heron config kubernetes set service_url
http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy
heron submit kubernetes ~/.heron/examples/heron-api-examples.jar
org.apache.heron.examples.api.AckingTopology acking
heron kill kubernetes acking
# clean
kubectl delete -f /tmp/zookeeper.yaml
kubectl delete -f ${DIR}/bookkeeper.yaml
kubectl delete -f /tmp/tools.yaml
kubectl delete -f /tmp/apiserver.yaml
```
2] helm(minikube):
```
bazel build --config=ubuntu scripts/packages:generate-helm-charts
helm install mytest bazel-bin/scripts/packages/heron-0.0.0.tgz --set
platform=minikube
# submit a job
curl
http://localhost:8001/api/v1/namespaces/default/services/mytest-apiserver:9000/proxy/api/v1/version
heron config mytest set service_url
http://localhost:8001/api/v1/namespaces/default/services/mytest-apiserver:9000/proxy
heron submit mytest ~/.heron/examples/heron-api-examples.jar
org.apache.heron.examples.api.AckingTopology acking
heron kill mytest acking
# clean
helm uninstall mytest
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]