Sitewhere Server Setup

 Sitewhere Server Deployment and Configuration


Deploy NFS Dynamic Client Provisioner

If you are using a custom cluster, you may follow this link to deploy dynamic volume provisioner for kubernetes.

Install a specific version of helm

wget https://get.helm.sh/helm-v3.2.4-linux-amd64.tar.gz

tar -zxvf helm-v3.2.4-linux-amd64.tar.gz

sudo mv linux-amd64/helm /usr/local/bin/helm

helm version


Install Istio

curl -L https://istio.io/downloadIstio | sh -

cd istio-1.14.1

export PATH=$PWD/bin:$PATH

istioctl install --set profile=demo -y

kubectl label namespace default istio-injectistiion=enabled


Install Go

sudo apt update

sudo apt install golang-go

Install Sitewhere Using Control CLI

Follow the instructions below or use this link.

Install binary with curl on Linux

curl -L https://github.com/sitewhere/swctl/releases/latest/download/swctl.linux.amd64 -o swctl && \

chmod +x ./swctl && sudo mv ./swctl /usr/local/bin/swctl

Finally, Install sitewhere 
swctl install -s=managed-nfs-storage

Create Sitewhere instances

swctl create instance sitewhere

Check Instances

swctl instances


Wait until the swctl instance TM STATUS and UM STATUS become as follows-


To get the sitewhere instance IP address, run the command below-

kubectl get svc istio-ingressgateway -n istio-system -o jsonpath='{.status.loadBalancer.ingress[0].ip}'

Install Sitewhere Admin UI

Install Node

cd ~

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -

sudo apt-get install -y nodejs

node -v

Install NPM

sudo apt install npm


Install LIbnss

sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev


Fix yarn issues

sudo apt remove cmdtest 

sudo apt remove yarn 

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - 

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update 

sudo apt-get install yarn -y


Comments