This is a clone from Ed Silva's Github.
This is a very simple container used to send mock Apache Web Server access log activity to STDOUT (every minute).
This container is used to demo different logging solutions e.g. FluentBit, etc when it comes to obtaining visibility via containerized workloads.
Azure Cloud Shell:
az acr build --registry aksregistryb3 --image apache-logs:v1 .
Docker (CLI):
cd apache-logs
chmod 755 gen.sh
docker build -t digitalkali/apache-logs .
docker login
docker push digitalkali/apache-logs:latest
docker run -d --rm --name apache-logs digitalkali/apache-logs
docker logs -f apache-logs
docker exec -it apache-logs /bin/sh
Create the 'web' namespace before running the workload (container)
kubectl create namespace web
Run the containerized workload:
kubectl create -f ./deployment.yaml
Delete the containerized workload:
kubectl delete -f ./deployment.yaml
Display apache-log mock access log
kubectl logs -n web -f $(kubectl get pods -n web -l app=apache-log -o jsonpath='{.items[0].metadata.name}')