The StackStorm Helm installation assumes you are running in a single-node Minikube cluster and the instructions provided alongside it serve smaller deployments. We are running StackStorm on a large cluster with multiple nodes. We will expose the web server externally to access the StackStorm UI.
Let's perform the following steps to create a cloud load balancer so that we can access the StackStorm web interface:
- Create a load balancer. The following command will create a load balancer through your cloud provider and expose the web service on port 80:
$ cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Service
metadata:
name: st2-service
namespace: stackstorm
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: st2web
EOF
- Find the external service IP. In the following example, we have used a Kubernetes cluster deployed on AWS. Although the output might be different, the following command should result in the same on other platforms:
$ kubectl get svc st2-service -nstackstorm
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
st2-service LoadBalancer 100.68.68.243 a022d6921df2411e9bd5e0a92289be87-2114318237.us-east-1.elb.amazonaws.com 80:31874/TCP 6m38s
- Open the external IP address from step 2 in a browser:
- Log in with the necessary credentials, that is, username as st2admin and password as Ch@ngeMe :
Now, you have access to the StackStorm interface. Now, we will click on the menu items and explore the actions before we create our first rule in the Defining a rule recipe.