Skip to main content
ahmadrazalab home page
Search...
⌘K
Support
Portfolio
Portfolio
Search...
Navigation
Home
DevopsLearnings
ServiceMesh
Kubernetes
Observability
Terraform
GITOPS
Cloud
Security
Projects
Bonus
POCs
Sponsored : PivvoAI
Proof of Concepts
ALB Logs Athena
CloudWatchGPU
GPU DCGM Exporter
HashiCorp Vault Dev
MYSQL replication test
Valero Backup Restore
Bitnami debian
Serve logs on web page nginx
Tinker
Php open base dir error pt uat
Rdkafka install php8.2
AWS S3 Storage
Main.py
Top 50 biggest files.py
REPORT
REPORT Backend
REPORT Top 50 Files
ElasticSearch POCs
ELK
ELK SNAP RESTORE S3
ElasticSearch DeepDive
Fluentbit EKS Setup
ISM
OSS S3 Snaps
Kibana Documentation
Recomended
S3Out.ASGLifeCycleHooks
S3Output.cost
Code Examples
AWSSecretManager
Code
Composer
Db healthcheck.php
Nvm error user
Php open base dir error pt uat
Rdkafka install php8.2
Run node bend
K8s HPA Testing
K8s H P A Testing
Info
Dockerimage
JSON Logger
Dockerfile
App.py
App.yaml
K8s Log Generator
Setup
1 demo loggers.yaml
2 app logger.yaml
Extreme pod logger.yaml
K8s Node Stress
Setup
Stress pod.yaml
On this page
Use slim Python image
Set working directory
Install dependencies
Copy the app code
Expose Flask default port (if running locally or behind K8s ingress)
Run the app
JSON Logger
Dockerfile
Copy page
Copy page
Use slim Python image
FROM python:3.9-slim
Set working directory
WORKDIR /app
Install dependencies
RUN pip install —no-cache-dir flask python-json-logger
Copy the app code
COPY app.py .
Expose Flask default port (if running locally or behind K8s ingress)
EXPOSE 8080
Run the app
CMD [“python”, “app.py”]
Dockerimage
App.py
⌘I