Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
256d290
adjusted dependencies and application properties
contextfreeuser Apr 14, 2023
d22570b
Deploy on branch develop
ukinimod Mar 8, 2023
5d65ae1
Improve Trafficgen
ukinimod Mar 8, 2023
fc1100e
Adjust dima resource requests
ukinimod Mar 8, 2023
baee66f
Update docs
ukinimod Mar 8, 2023
a9f0df3
Fix missing logs
ukinimod Mar 8, 2023
e798cc4
Fix missing logs
ukinimod Mar 8, 2023
47f5410
Fix traffic request problems
ukinimod Mar 8, 2023
6f9304f
Refactor TransformationTrafficService
ukinimod Mar 8, 2023
1a3eb66
Improve dashboards
ukinimod Mar 9, 2023
1df3542
Simplify ES configuration
ukinimod Mar 9, 2023
648a4c2
Fix grafana dashboards
ukinimod Mar 9, 2023
2113cfe
Simplify deployment
ukinimod Mar 13, 2023
253248b
Simplify deployment
ukinimod Mar 13, 2023
cd32b99
Structure deployment scripts
ukinimod Mar 13, 2023
f48e93f
Delete deprecated files
ukinimod Mar 13, 2023
a4f9e0a
make ingress configurable
ukinimod Mar 13, 2023
8c43d1c
Switch pull policy to ifnotpresent
ukinimod Mar 13, 2023
562cfed
Create local deployment
ukinimod Mar 13, 2023
8b8e3d1
Make nginx parameters configurable
ukinimod Mar 13, 2023
d073019
Add fluentd deploy to loki deploy
ukinimod Mar 13, 2023
65037dc
Make tracing and apm configurable
ukinimod Mar 13, 2023
70363bc
Fix misconfigured sleuth
ukinimod Mar 14, 2023
c0a92a1
Add livenessprobe
ukinimod Mar 14, 2023
69ae7c8
Add startupprobe
ukinimod Mar 14, 2023
5b42ce2
Deactivate istio in monitoring namespace
ukinimod Mar 14, 2023
3f33e0f
Fix loki endpoint
ukinimod Mar 14, 2023
18066ce
Upload images after startup
ukinimod Mar 14, 2023
4877ebd
Delete superflous config
ukinimod Mar 14, 2023
ef224bb
Speed up trafficgen
ukinimod Mar 14, 2023
f40e408
Adding Grafana Tempo to Kubernetes Tools
lieberlois Mar 13, 2023
5b4ad4b
Adding GCP token secret for ingester
lieberlois Mar 14, 2023
85d5291
Adding Tempo datasource to grafana
lieberlois Mar 14, 2023
eba1313
Asign more resources to imageresize
ukinimod Mar 14, 2023
79ee943
Make target for zipkin protocol configurable
ukinimod Mar 14, 2023
c621386
Integrate tempo
ukinimod Mar 14, 2023
2b0267c
Fix missing image resize service
ukinimod Mar 14, 2023
7cdfc24
Simplify configuration of spring
ukinimod Mar 14, 2023
acd2931
Switch apps services to clusterip
ukinimod Mar 15, 2023
472baf1
Configure tracing of istio to tempo
ukinimod Mar 15, 2023
d7ee697
Simplify MetricsService
ukinimod Mar 16, 2023
fa30097
Update solution dashboard
ukinimod Mar 16, 2023
e7f7191
Switch FE tracing config to tempo
ukinimod Mar 16, 2023
6029cf9
Install jaeger not by default
ukinimod Mar 16, 2023
90539be
Update config
ukinimod Mar 16, 2023
b5ed0d8
Fix trafficgen sending header with traceid
ukinimod Mar 16, 2023
634ee23
Update grafana config
ukinimod Mar 17, 2023
34aa6c5
Update architecture
ukinimod Mar 17, 2023
08700ee
Reactivate APM
ukinimod Mar 17, 2023
844a037
Add live-of-a-counter dashboard
ukinimod Mar 17, 2023
c4c6bc6
Switch to jaeger for school
ukinimod Mar 22, 2023
78374ee
Switch to jaeger for school
ukinimod Mar 22, 2023
fbdff65
Add some basic tests
ukinimod Mar 22, 2023
3d8546d
Missing transformed image -> failed transformation
ukinimod Mar 22, 2023
781588f
Add further tests
ukinimod Mar 22, 2023
40527a6
Adding Local Setup and Promtail configuration
lieberlois Mar 15, 2023
8af3571
Explicitly setting Grafana Datasource UIDs
lieberlois Mar 17, 2023
a29f5d4
Adding traceToLogs
lieberlois Mar 18, 2023
b354568
Preparing local setup with k3d and ingress
lieberlois Apr 8, 2023
db19e0b
Adding istio and jaeger
lieberlois Apr 8, 2023
019b7a2
Adding elastic, kibana and fluentd
lieberlois Apr 9, 2023
3b6bf61
Adding teardown script for local setup
lieberlois Apr 9, 2023
d910f5f
Fixing paths and setting up ingresses for local setup
lieberlois Apr 17, 2023
113f51f
Adding missing tls config
lieberlois Apr 17, 2023
ca06200
Adding readme and k3d image import
lieberlois Apr 17, 2023
a58c4db
Fix fluentd-elasticsearch-plugin version
ukinimod Apr 19, 2023
d23ecb7
Add dashboards to grafana
ukinimod Apr 19, 2023
ad46ebc
Merge branch 'anarakhmedov-update-spring' into develop
ukinimod Apr 19, 2023
247f4a9
Fix unresolveble error
ukinimod Apr 20, 2023
e116877
Fix build for M1 chips; Update gradle
marcel-henrich-mw Apr 26, 2023
8363f34
Update to Spring 3.0.6; fix some service startup
marcel-henrich-mw Apr 26, 2023
4d1508e
Fixing ARM64 M1 application build
lieberlois Apr 26, 2023
382b830
Merge pull request #141 from lieberlois/develop
marcel-henrich-mw Apr 26, 2023
df958ca
Update to Junit5, Refacored Code
marcel-henrich-mw Apr 26, 2023
e275dee
Align startup of applications
marcel-henrich-mw Apr 26, 2023
f59200e
Fix Arithmetic Exception in Trafficgen
marcel-henrich-mw Apr 26, 2023
b200e12
Delete old integrationTest files
marcel-henrich-mw Apr 26, 2023
157728c
Upgrade mongodb
marcel-henrich-mw Apr 26, 2023
1e7bd21
Fixing elastic curator, elasticsearch, fluentd
lieberlois Oct 5, 2023
62e9073
Fix ImageFlipClient in imageOrchestrator
BlacCello Oct 5, 2023
237187d
Changes from Code Review
lieberlois Oct 5, 2023
c82c09d
Merge pull request #144 from lieberlois/develop
marcel-henrich-mw Oct 9, 2023
0fcb643
Fix local ingress by setting host to localhost
BlacCello Oct 10, 2023
eec18ed
Merge pull request #145 from feature-creeps/fix-local-ingress
marcel-henrich-mw Oct 10, 2023
45c0ddf
Fix zipkin dependencies and config
BlacCello Oct 10, 2023
05fbe6a
Update spring boot, temurin image to fix apm mongo tracing
BlacCello Oct 10, 2023
0c5e78a
Fix index creation job image for k3d
BlacCello Oct 10, 2023
12ab5bb
Set imagePullPolicy to never for elastic-index
BlacCello Oct 11, 2023
85f50ae
Merge pull request #146 from feature-creeps/fix-local-elastic-index-c…
marcel-henrich-mw Oct 11, 2023
b862056
Add env vars for tracing (enabled + propability)
BlacCello Oct 11, 2023
b2dba3d
Merge pull request #147 from feature-creeps/fix-zipkin-tracing
marcel-henrich-mw Oct 11, 2023
a8f7674
Hotfixes for ingress and artifact registry
lieberlois Jan 22, 2025
8958538
Merge pull request #148 from lieberlois/hotfixes/2025
lieberlois Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local/application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local: &localConfig

global:
tracing:
url: http://zipkin.istio-system:9411
endpoint: http://zipkin.istio-system:9411/api/v2/spans

dima-frontend:
image:
Expand Down
23 changes: 19 additions & 4 deletions local/kubernetes/10_build_dima.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail

export GKE_REGISTRY=local
script_dir="$(dirname "$0")"

GITHUB_SHA="$(git rev-parse --short HEAD)-snapshot"
export GITHUB_SHA
image_prefix="local/dima-"
image_tag="$(git rev-parse --short HEAD)-snapshot"

docker compose -f ../../stack/compose/docker-compose.yml -f ../../stack/compose/docker-compose-registry-tags.yml build --parallel
services=(
"imageorchestrator"
"imageholder"
"imagerotator"
"imagegrayscale"
"imageresize"
"imageflip"
"imagethumbnail"
"trafficgen"
)

for service in "${services[@]}"; do
docker build "${script_dir}/../../stack/application/" --build-arg "SERVICE=$service" -t "${image_prefix}${service}:${image_tag}"
done

docker build "${script_dir}/../../stack/application/frontend/" -t "${image_prefix}frontend:${image_tag}"
3 changes: 2 additions & 1 deletion local/kubernetes/22b_deploy_logging_elastic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -euo pipefail

NAMESPACE=logging
ELASTIC_VERSION="7.17.3"
FLUENTD_VERSION="0.4.3"

echo "=== Deploy logging stack in namespace ${NAMESPACE}"

Expand All @@ -22,7 +23,7 @@ echo "--- install curator"
helm upgrade --install -n "$NAMESPACE" -f tools/logging/curator.yaml elasticsearch-curator lebenitza/elasticsearch-curator

echo "--- install fluentd"
helm upgrade --install -n "$NAMESPACE" -f tools/logging/fluentd.yaml fluentd fluent/fluentd
helm upgrade --install -n "$NAMESPACE" -f tools/logging/fluentd.yaml fluentd fluent/fluentd --version ${FLUENTD_VERSION}

echo "--- install kibana"
helm upgrade --install -n "$NAMESPACE" -f tools/logging/kibana.yaml --version ${ELASTIC_VERSION} kibana elastic/kibana
Expand Down
12 changes: 8 additions & 4 deletions local/kubernetes/infrastructure/service-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- http:
- host: localhost
http:
paths:
- path: "/prometheus/?(.*)"
pathType: ImplementationSpecific
Expand All @@ -29,7 +30,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- http:
- host: localhost
http:
paths:
- path: "/grafana/?(.*)"
pathType: ImplementationSpecific
Expand All @@ -49,7 +51,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- http:
- host: localhost
http:
paths:
- path: "/jaeger/?(.*)"
pathType: ImplementationSpecific
Expand All @@ -70,7 +73,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- http:
- host: localhost
http:
paths:
- path: "/kibana/?(.*)"
pathType: ImplementationSpecific
Expand Down
3 changes: 2 additions & 1 deletion local/kubernetes/tools/istio/kiali.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ deployment:
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
Expand All @@ -21,7 +22,7 @@ deployment:
port:
number: 20001
path: /(.*)
pathType: Prefix
pathType: ImplementationSpecific
pod_annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
Expand Down
7 changes: 5 additions & 2 deletions local/kubernetes/tools/logging/curator.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
image:
repository: bitnami/elasticsearch-curator-archived

configMaps:
action_file_yml: |-
---
Expand All @@ -20,7 +23,7 @@ configMaps:
unit_count: 3
- filtertype: pattern
kind: regex
value: '^[^\.].*'
value: '^[^\.].*'
config_yml: |-
---
client:
Expand All @@ -44,4 +47,4 @@ configMaps:
loglevel: INFO
logfile:
logformat: default
blacklist: [elasticsearch]
blacklist: ['elasticsearch']
11 changes: 9 additions & 2 deletions local/kubernetes/tools/logging/elasticsearch.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
---
replicas: 1

esJavaOpts: "-Xms512m -Xmx512m"

resources:
requests:
cpu: "250m"
memory: "1000Mi"
memory: "1Gi"
limits:
cpu: "500m"
memory: "1500Mi"
memory: "2Gi"

secret:
enabled: true
password: "changeme"

clusterHealthCheckParams: "wait_for_status=yellow&timeout=1s"

volumeClaimTemplate:
resources:
requests:
storage: 10Gi

lifecycle:
postStart:
exec:
Expand Down
6 changes: 6 additions & 0 deletions local/kubernetes/tools/logging/fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ fileConfigs:
</parse>
emit_unmatched_lines true
</source>
<source>
@type prometheus
bind 0.0.0.0
port 24231
metrics_path /metrics
</source>
02_filters.conf: |-
<label @KUBERNETES>
<match kubernetes.var.log.containers.fluentd**>
Expand Down
5 changes: 3 additions & 2 deletions local/kubernetes/tools/logging/kibana-index/build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ set -euo pipefail
dir="$(dirname "$0")"
namespace="$1"

TAG="gcr.io/olly-2021-k8s-migration/kibana-index:latest"
CLUSTER_NAME=o11y-stack
TAG="local/kibana-index:latest"

docker build "$dir" -t "$TAG"
docker push "$TAG"
k3d image import -c "$CLUSTER_NAME" "$TAG"

kubectl apply -n "$namespace" -f "$dir/job.yaml"
4 changes: 2 additions & 2 deletions local/kubernetes/tools/logging/kibana-index/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
spec:
containers:
- name: kibana-index
image: gcr.io/olly-2021-k8s-migration/kibana-index:latest
imagePullPolicy: Always
image: local/kibana-index:latest
imagePullPolicy: Never # Imported via k3d image import
restartPolicy: OnFailure
backoffLimit: 4
20 changes: 10 additions & 10 deletions stack/application/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
FROM gradle:7.6-jdk17-alpine AS builder
FROM eclipse-temurin:17.0.8.1_1-jdk-jammy AS builder

WORKDIR /build

ARG ELASTIC_APM_AGENT_VERSION=1.36.0
ARG ELASTIC_APM_AGENT_VERSION=1.43.0

# apm
RUN wget https://search.maven.org/remotecontent?filepath=co/elastic/apm/elastic-apm-agent/${ELASTIC_APM_AGENT_VERSION}/elastic-apm-agent-${ELASTIC_APM_AGENT_VERSION}.jar -O /elastic-apm-agent.jar
RUN wget -q https://search.maven.org/remotecontent?filepath=co/elastic/apm/elastic-apm-agent/${ELASTIC_APM_AGENT_VERSION}/elastic-apm-agent-${ELASTIC_APM_AGENT_VERSION}.jar -O /elastic-apm-agent.jar

# gradle cache
COPY build.gradle build.gradle
COPY settings.gradle settings.gradle
RUN gradle resolveDependencies
COPY ["gradle/", "./gradle"]
COPY ["build.gradle", "settings.gradle", "gradlew", "./"]
RUN ./gradlew resolveDependencies

# libs
COPY springevents springevents
RUN gradle springevents:build
RUN ./gradlew springevents:build

# service build
ARG SERVICE
COPY $SERVICE $SERVICE

RUN gradle $SERVICE:build
RUN ./gradlew "$SERVICE:build"

FROM eclipse-temurin:17.0.6_10-jre AS final
FROM eclipse-temurin:17.0.8.1_1-jre-jammy AS final
ARG SERVICE

COPY --from=builder /elastic-apm-agent.jar /
Expand All @@ -34,4 +34,4 @@ RUN chmod +x /entrypoint.sh
ENV SERVICE=$SERVICE

EXPOSE 8080 5005
ENTRYPOINT /entrypoint.sh $SERVICE
ENTRYPOINT ["/entrypoint.sh"]
Loading