Difficulty: Introduction
Estimated Time: 10 minutes

Shiny R Applications on Kubernetes

R Shiny

Interact. Analyze. Communicate.

These next steps demonstrating using R based Shiny applications on Kubernetes. With a Kubernetes cluster based on Minikube and a CLI tool called kubectl, a few steps will get Shiny servers running.

You will learn how:

  • to use the basics of the kubectl CLI tool
  • to install Shiny R applications on Kubernetes
  • containers are deployed as Deployments in Pods
  • a Service can provide access to a Pod

Shiny is an R package that makes it easy to build interactive web apps straight from R. You can host standalone apps on a webpage or embed them in R Markdown documents or build dashboards. You can also extend your Shiny apps with CSS themes, htmlwidgets, and JavaScript actions.

Conclusion

You now understand how to run Shiny applications on Kubernetes.

Lessons Learned

With these scenarios you have learned how:

  • to use the basics of the kubectl CLI tool
  • to install Shiny applications on Kubernetes
  • containers are deployed as Deployments in Pods
  • a Service can provide access to a replication of Pods

Use this same technique to create your own containers containing your own Shiny solutions.

References

Don’t stop now! The next scenario will only take about 10 minutes to complete.

R Shiny

Step 1 of 4

Kubernetes Running for You

As you see, your Kubernetes cluster based on Minikube is will be available in a moment. Verify it's ready for your use:

minikube version && minikube status

Notice that while Minikube is running, there is nothing deployed except for a single service/kubernetes item,

kubectl get deployments,pods,services

and no services are listed.

minikube service list --namespace default

A clean slate, let's deploy our first application.

Terminal
Kubernetes Dashboard
Shiny Demo
Shiny Wordcloud