Skip to content

Instantly share code, notes, and snippets.

@admc
Created September 25, 2024 18:44
Show Gist options
  • Select an option

  • Save admc/1bc0f8c69bcd25004d59528161dbae62 to your computer and use it in GitHub Desktop.

Select an option

Save admc/1bc0f8c69bcd25004d59528161dbae62 to your computer and use it in GitHub Desktop.

Application Setup

This guide is designed to walk you through the basics of the use case.

Validate your Kubernetes setup by running:

kubectl version

You should see output with both a Client Version and Server Version component.

Install Emojivoto

exit 1

Let's install a demo application called Emojivoto. Emojivoto is a simple standalone Kubernetes application that uses a mix of gRPC and HTTP calls to allow the user to vote on their favorite emojis.

Tail the pods

kubectl get pods -n emojivoto -w

Install Emojivoto into the emojivoto namespace by running:

kubectl apply -f emojivoto.yaml

# Ran on 2024-09-24 10:28:56-07:00 for 4.471s exited with 0
namespace/emojivoto unchanged
serviceaccount/emoji unchanged
serviceaccount/voting unchanged
serviceaccount/web unchanged
service/emoji-svc unchanged
service/voting-svc unchanged
service/web-svc unchanged
deployment.apps/emoji unchanged
deployment.apps/vote-bot unchanged
deployment.apps/voting unchanged
deployment.apps/web un*****ed

Forward the port to use the web app locally

kubectl -n emojivoto port-forward svc/web-svc 8080:80

Now visit ht*****************80. Voila! You should see Emojivoto in all its glory.

Next up

Proceed with troubleshoot.md.


▶️ Generated by Stateful Cloud

Share your own terminal outputs from Runme Notebooks, it's free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment