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

# Simple and Component-based Kubernetes Guestbook Apps

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

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/kubernetes-cs-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-cs-guestbook
cd pulumi-examples/kubernetes-cs-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

In this directory, you will find two variants of the Guestbook:

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

Both examples provision the exact same Kubernetes Guestbook application, but showcase different aspects of Pulumi.
