Difficulty: Introduction
Estimated Time: 10 minutes

Shiny R Applications on Kubernetes

Interact. Analyze. Communicate.

These next steps demonstrating using R based Shiny applications on Kubernetes. With a Kubernetes cluster 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, HTML widgets, and JavaScript actions.

You now understand how to run Shiny applications on Kubernetes.

R Shiny

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.


For a deeper understanding of these topics and more join
Jonathan Johnson
at various conferences, symposiums, workshops, and meetups.

Software Architectures ★ Speaker ★ Workshop Hosting ★ Kubernetes & Java Specialist

R Shiny

Step 1 of 4

Your Kubernetes Cluster

For this scenario, Katacoda has just started a fresh Kubernetes cluster for you. Verify it's ready for your use.

kubectl version --short && \ kubectl get componentstatus && \ kubectl get nodes && \ kubectl cluster-info

The Helm package manager used for installing applications on Kubernetes is also available.

helm version --short

Kubernetes Dashboard

You can administer your cluster with the kubectl CLI tool or use the visual Kubernetes Dashboard. Use this script to access the protected Dashboard.


Shiny Demo
Shiny Wordcloud
Kubernetes Dashboard