This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"service_name": "nginx-reverse-proxy", | |
"sampler": { | |
"type": "const", | |
"param": 1 | |
}, | |
"reporter": { | |
"localAgentHostPort": "jaeger-logzio-agent.default.svc.cluster.local:6831" | |
}, | |
"headers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Log Format | |
log_format addHeaderlog '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" ' | |
'"$request_body" "$user_id" "$request_uri"'; | |
server { | |
resolver 127.0.0.1; | |
listen 80; | |
server_tokens off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loading opentracing module | |
load_module modules/ngx_http_opentracing_module.so; | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:1.17.10-alpine AS builder | |
ENV NGINX_VERSION 1.17.10 | |
ENV OPENTRACING_CPP_VERSION 1.5.1 | |
ENV NGINX_OPENTRACING_VERSION 0.10.0 | |
ENV JAGER_TRACING 0.4.2 | |
# Download sources | |
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
deployment=$1 | |
environment=$2 | |
pods=`kubectl --context $environment get pod -lapp=$deployment | grep -v NAME | awk '{print $1}'` | |
required=`kubectl --context $environment get pod -lapp=$deployment | grep -v NAME | grep 1/1 | wc -l` | |
if [[ -z $pods ]]; then | |
echo "No pods found for deployment $deployment on $environment" | |
exit 1 | |
else | |
echo "Pods Found:" |