https://github.com/epomatti/scalyr-kubernetes-demo
Scalyr demo app on Kubernetes
https://github.com/epomatti/scalyr-kubernetes-demo
dataset flask helm k8s kubernetes python scalyr
Last synced: 3 months ago
JSON representation
Scalyr demo app on Kubernetes
- Host: GitHub
- URL: https://github.com/epomatti/scalyr-kubernetes-demo
- Owner: epomatti
- License: mit
- Created: 2022-05-11T01:56:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-11T04:08:51.000Z (about 3 years ago)
- Last Synced: 2025-01-17T18:41:33.668Z (5 months ago)
- Topics: dataset, flask, helm, k8s, kubernetes, python, scalyr
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scalyr-Kubernetes Demo
## Minikube
### 1 - Install Scalyr Helm Chart
Start Minikube: `minikube start`
The [recommended method](https://app.scalyr.com/help/install-agent-kubernetes-helm) is using the official [Helm chart](https://github.com/scalyr/helm-scalyr):
```sh
# Create or copy your API Key from the Scalyr portal
apikey=''helm install '' scalyr-agent --set scalyr.apiKey=$apikey --repo 'https://scalyr.github.io/helm-scalyr/' --wait
```### 2 - Docker Image Cache
Build the image locally:
```sh
# Build the image locally
docker build --tag scalyr-demo .# Add to Minikube cache (takes a minute)
minikube image load scalyr-demo
```### 3 - Kubernetes Deploy
```sh
# Root manifest
kubectl apply -f .# To access it, open a tunnel in Minikube
minikube tunnel
```## Local Development
To run and make change to the local application:
```sh
# In-project pipenv dependencies
mkdir .venv# Ubuntu 22 ad-hoc fix for https://github.com/pypa/setuptools/issues/3278
export SETUPTOOLS_USE_DISTUTILS=stdlib# Get the dependencies
pipenv install --dev
pipenv shell# Flask Env
cp config/dev.flaskenv .flaskenv# Running locally
python3 -m flask run
```