Start Minikube: minikube start
The recommended method is using the official Helm chart:
# Create or copy your API Key from the Scalyr portal
apikey='<API KEY>'
helm install '<release>' scalyr-agent --set scalyr.apiKey=$apikey --repo 'https://scalyr.github.io/helm-scalyr/' --wait
Build the image locally:
# Build the image locally
docker build --tag scalyr-demo .
# Add to Minikube cache (takes a minute)
minikube image load scalyr-demo
# Root manifest
kubectl apply -f .
# To access it, open a tunnel in Minikube
minikube tunnel
To run and make change to the local application:
# 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