# rancher-demo **Repository Path**: chenmin_study/rancher-demo ## Basic Information - **Project Name**: rancher-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-22 - **Last Updated**: 2020-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rancher/Kubernetes Demo Application This is a Go demo application used for demonstrating Kubernetes and load balancing. It will create a colored icon for each replica within a ReplicaSet and indicate which one most recently served a response. Replicas which haven't been heard from will begin to fade out, until after a configurable number of seconds they will disappear. This is useful for demonstrating scaling up/down or in the case of an application like [Rio](https://rio.io), for showing scale-in of an upgraded application. ## Environment Variables - `TITLE`: sets title in demo app - `SHOW_VERSION`: show version of app in ui (`VERSION` env var) - `REFRESH_INTERVAL`: interval in milliseconds for page to refresh (default: 1000) - `EXPIRE_INTERVAL`: how long a replica can go without being seen before we remove it from the display (default: 10s) - `REMOVE_INTERVAL`: how long after `EXPIRE_INTERVAL` until we remove the icon (default: 20s) - `SKIP_ERRORS`: set this to prevent errors from counting (useful on janky load balancers) - `METADATA`: extra text at bottom of info area - `COW_COLOR`: what color the cow background should be (default: black). Valid options are any color from the CSS pallete, including: - red - orange - yellow - olive - green - teal - blue - violet - purple - pink - black ## Build `docker build -t monachus/rancher-demo .`