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 steps you have learned:

  • how to use the basics of the kubectl CLI tool,
  • how to install Shiny applications on Kubernetes,
  • how containers are deployed as Deployments in Pods,
  • how 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


No Fluff Just Stuff

For a deeper understanding of these topics and more join me, Jonathan Johnson, for a transcendent experience on the No Fluff Just Stuff Software Symposium Tour.

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