Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • As docker container on a local machine with kubernbetes
  • As kubernetes services/pods on a local machine with kubernetes or in minikube
  • As kubernetes services/pods on a kubernetes cluster

Prerequisites

The following need to be installed, latest version,  on the machine 

  • Kubernetes or minikube including kubectl
  • curl
  • git
  • maven (if buidling image)
  • docker (for builing and image registry) 
  • helm

Preparation

Clone the nonrtric repo from gerrit and change dir. Make sure to use the correct branch when cloning, use "master" until the branch for D Release is available.

...

If running in a local kubernetes, set the env KUBE_HOST to localhostthe host of the kubernetes control plane

Code Block
languagebash
themeMidnight
$ kubectl cluster-info
Kubernetes control plane is running at https://kubernetes.docker.internal:6443
$ KUBE_HOST="localhostkubernetes.docker.internal"

If running in a kubernetes cluster or in minikube, set the env KUBE_HOST to the ip of the clusterkubernetes control plane.

Code Block
languagebash
themeMidnight
titleExample
$ kubectl cluster-info
Kubernetes master is running at https://10.2.0.103:6443
$ KUBE_HOST=10.2.0.103

...

All operations should report "OK".

If running in a local kubernetes

...

languagebash
themeMidnight

...

.

...

if running in a kubernetes cluster. Use the previously set env var KUBE_HOST as second arg to the script


Code Block
languagebash
themeMidnight
$ ./test.sh kube-cluster $KUBE_HOST

Example output of the script

...