---
title: "Simple and component-based Kubernetes Guestbook apps"
url: "https://www.pulumi.com/dev/examples/kubernetes-ts-guestbook/"
image: "https://www.pulumi.com/assets/og/dev/examples/kubernetes-ts-guestbook.png"
---

# Simple and component-based Kubernetes Guestbook apps

- Source on GitHub: https://github.com/pulumi/examples/tree/master/kubernetes-ts-guestbook

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/kubernetes-ts-guestbook) repo. Pull down just this directory to follow along:

```bash
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set kubernetes-ts-guestbook
cd pulumi-examples/kubernetes-ts-guestbook
```

A port of the standard [Kubernetes Guestbook](https://kubernetes.io/docs/tutorials/stateless-application/guestbook/)
to Pulumi. This example shows you how to build and deploy a simple, multi-tier web application using Kubernetes and
Docker, and consists of three components:

* A single-instance Redis master to store guestbook entries
* Multiple replicated Redis instances to serve reads
* Multiple web frontend instances

Unlike the original, which is defined in YAML and applied with `kubectl`, this version is authored in TypeScript and deployed with the Pulumi CLI.

There is an [interactive Tutorial available](https://www.pulumi.com/docs/tutorials/kubernetes/guestbook/) for
this example. If this is your first time using Pulumi for Kubernetes, we recommend starting there.

This directory contains two variants of the Guestbook, each a standalone Pulumi project with its own README:

- [simple/](https://github.com/pulumi/examples/tree/master/kubernetes-ts-guestbook/simple) — a straight port of the original YAML.
- [components/](https://github.com/pulumi/examples/tree/master/kubernetes-ts-guestbook/components) — demonstrates the benefits of using a real language, namely eliminating boilerplate through the use of real component abstractions.

Both variants provision the exact same Kubernetes Guestbook application, but showcase different aspects of Pulumi. Follow the README in whichever sub-directory you choose.
