Git Product home page Git Product logo

k8s-example-apps's Introduction

Kubernetes Example Applications

This repository contains Kubernetes reference applications. See below for links or navigate to one of the example app directories.

Pac-Man Node.js Application

Pac-Man game using Node.js.

Pac-Man NGINX Application

This example is a bit older and has not been maintained as well. Most of the relevant content is in the Pac-Man Node.js version linked above. So I would try that instead.

Pac-Man game using NGINX.

Sample demo with Federation-v2

Sample demo with Federation-v2

k8s-example-apps's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

k8s-example-apps's Issues

Upstream roadmap

It would be great to get this into kube as an example to rule them all. One possibility is simply to stick out the pacman metaphor forever, and expand it, Per conv w / @wattsteve @font

  • new database backends,
  • have it use kube user facing features like liveness and readiness

....etc...

I'll create a feature list here and expand over time. Some starters:

  • Spark or Flink integration: Analyze performance of various pacman graph algorithms on average (bellman ford/bfs/dfs). Im sure there are research papers and stuff on ideal pacman algorithms as its a generalizable problem.
  • Bots so that it scales to N data generators https://github.com/telecoda/go-man-app might be a start to fork. Allow users to enter algorithm as a lua plugin into the browser so they can build there own pacman bot armys.
  • Exemplify Liveness + Readiness by embedding a timebomb into the app which causes it to die. This would eventually trip kubelets to restart the container. Allow users to update the timebomb to see analytic event throughput die and then recover
  • Run from source so no external images other then the baseline golang ones in upstream kube ci are used , or for example FROM golang:latest which might be in the CI images already. Gaurantees upstream compatibility.
  • Retain the federation capacity, allow people to enter N credentials cloud vendors and deploy it across all N clusters. Get vendor buy in on this so that AWS, azure, and so on support the interface for users to submit the clouds they care about.

Pacman Federated Brainstorming

Game Use Cases

  • Intra-cloud provider federation
  • Inter-cloud provider federation

Intra-cloud provider federation

Use cases

  • Failover
    • Without data failed over
    • Data failed over either through NoSQL replication or OOB mechanism
  • Multi-instance
    • With and without data replication
    • Show what region you're connected to in some unique way e.g. display region name, different colors, different score multiplier, etc. In a multi-player game this would be like different game servers.

Kubernetes Federation Features

  1. Load balancing across all federated clusters

Error while creating deployment

kubectl create -f deployments/mongo-deployment.yaml

error: resource mapping not found for name: "mongo" namespace: "" from "deployments/mongo-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
ensure CRDs are installed first

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.