diff --git a/local/application/values.yaml b/local/application/values.yaml
index a81c714c..0bd28d75 100644
--- a/local/application/values.yaml
+++ b/local/application/values.yaml
@@ -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:
diff --git a/local/kubernetes/10_build_dima.sh b/local/kubernetes/10_build_dima.sh
index 349e3ffe..52e90721 100755
--- a/local/kubernetes/10_build_dima.sh
+++ b/local/kubernetes/10_build_dima.sh
@@ -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
\ No newline at end of file
+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}"
diff --git a/local/kubernetes/22b_deploy_logging_elastic.sh b/local/kubernetes/22b_deploy_logging_elastic.sh
index 3f2b81e2..14ed8f44 100755
--- a/local/kubernetes/22b_deploy_logging_elastic.sh
+++ b/local/kubernetes/22b_deploy_logging_elastic.sh
@@ -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}"
@@ -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
diff --git a/local/kubernetes/infrastructure/service-ingress.yaml b/local/kubernetes/infrastructure/service-ingress.yaml
index 2db471e4..dd0b1045 100644
--- a/local/kubernetes/infrastructure/service-ingress.yaml
+++ b/local/kubernetes/infrastructure/service-ingress.yaml
@@ -9,7 +9,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- - http:
+ - host: localhost
+ http:
paths:
- path: "/prometheus/?(.*)"
pathType: ImplementationSpecific
@@ -29,7 +30,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- - http:
+ - host: localhost
+ http:
paths:
- path: "/grafana/?(.*)"
pathType: ImplementationSpecific
@@ -49,7 +51,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- - http:
+ - host: localhost
+ http:
paths:
- path: "/jaeger/?(.*)"
pathType: ImplementationSpecific
@@ -70,7 +73,8 @@ metadata:
spec:
ingressClassName: nginx
rules:
- - http:
+ - host: localhost
+ http:
paths:
- path: "/kibana/?(.*)"
pathType: ImplementationSpecific
diff --git a/local/kubernetes/tools/istio/kiali.yaml b/local/kubernetes/tools/istio/kiali.yaml
index 80423948..0c113dde 100644
--- a/local/kubernetes/tools/istio/kiali.yaml
+++ b/local/kubernetes/tools/istio/kiali.yaml
@@ -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:
@@ -21,7 +22,7 @@ deployment:
port:
number: 20001
path: /(.*)
- pathType: Prefix
+ pathType: ImplementationSpecific
pod_annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
diff --git a/local/kubernetes/tools/logging/curator.yaml b/local/kubernetes/tools/logging/curator.yaml
index e0db844a..df522fab 100644
--- a/local/kubernetes/tools/logging/curator.yaml
+++ b/local/kubernetes/tools/logging/curator.yaml
@@ -1,4 +1,7 @@
---
+image:
+ repository: bitnami/elasticsearch-curator-archived
+
configMaps:
action_file_yml: |-
---
@@ -20,7 +23,7 @@ configMaps:
unit_count: 3
- filtertype: pattern
kind: regex
- value: '^[^\.].*'
+ value: '^[^\.].*'
config_yml: |-
---
client:
@@ -44,4 +47,4 @@ configMaps:
loglevel: INFO
logfile:
logformat: default
- blacklist: [‘elasticsearch’]
+ blacklist: ['elasticsearch']
diff --git a/local/kubernetes/tools/logging/elasticsearch.yaml b/local/kubernetes/tools/logging/elasticsearch.yaml
index fc0ef6b2..2a9000b5 100644
--- a/local/kubernetes/tools/logging/elasticsearch.yaml
+++ b/local/kubernetes/tools/logging/elasticsearch.yaml
@@ -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:
diff --git a/local/kubernetes/tools/logging/fluentd.yaml b/local/kubernetes/tools/logging/fluentd.yaml
index 62435c30..fef917d7 100644
--- a/local/kubernetes/tools/logging/fluentd.yaml
+++ b/local/kubernetes/tools/logging/fluentd.yaml
@@ -35,6 +35,12 @@ fileConfigs:
emit_unmatched_lines true
+
+ @type prometheus
+ bind 0.0.0.0
+ port 24231
+ metrics_path /metrics
+
02_filters.conf: |-