From 9c6f6f4878ea916a53ed9396abf81810c348f0d3 Mon Sep 17 00:00:00 2001 From: Greg Schohn Date: Thu, 3 Oct 2024 19:57:16 -0400 Subject: [PATCH] another checkpoint Signed-off-by: Greg Schohn --- .../k8s/charts/migrationConsole/Chart.yaml | 2 +- deployment/k8s/charts/replayer/Chart.yaml | 18 ----------------- .../charts/replayer/templates/replayer.yaml | 20 +++++++++++++++++++ deployment/k8s/localTesting.sh | 2 +- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/deployment/k8s/charts/migrationConsole/Chart.yaml b/deployment/k8s/charts/migrationConsole/Chart.yaml index e8104395b..714c18614 100644 --- a/deployment/k8s/charts/migrationConsole/Chart.yaml +++ b/deployment/k8s/charts/migrationConsole/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: migration-console -description: A Helm chart for Kubernetes +description: A Helm chart to install the Migration Console type: application version: 0.1.0 appVersion: "1.16.0" diff --git a/deployment/k8s/charts/replayer/Chart.yaml b/deployment/k8s/charts/replayer/Chart.yaml index c7ab611a3..4bd8707e5 100644 --- a/deployment/k8s/charts/replayer/Chart.yaml +++ b/deployment/k8s/charts/replayer/Chart.yaml @@ -1,24 +1,6 @@ apiVersion: v2 name: replayer description: A Helm chart to install the Traffic Replayer - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) version: 0.1.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. appVersion: "1.16.0" diff --git a/deployment/k8s/charts/replayer/templates/replayer.yaml b/deployment/k8s/charts/replayer/templates/replayer.yaml index e69de29bb..28427df1d 100644 --- a/deployment/k8s/charts/replayer/templates/replayer.yaml +++ b/deployment/k8s/charts/replayer/templates/replayer.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: replayer +spec: + replicas: 1 + selector: + matchLabels: + app: replayer + template: + metadata: + labels: + app: replayer + env: v1 + spec: + containers: + - name: replayer + image: migrations/traffic_replayer:latest + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "-c", "/runJavaWithClasspath.sh org.opensearch.migrations.replay.TrafficReplayer --speedup-factor 2 https://opensearchtarget:9200 --auth-header-value Basic\\ YWRtaW46bXlTdHJvbmdQYXNzd29yZDEyMyE= --insecure --kafka-traffic-brokers kafka:9092 --kafka-traffic-topic logging-traffic-topic --kafka-traffic-group-id logging-group-default --otelCollectorEndpoint http://otel-collector:4317"] #--transformer-config-base64 W3sgIkpzb25Kb2x0VHJhbnNmb3JtZXJQcm92aWRlciI6ClsKICB7CiAgICAic2NyaXB0IjogewogICAgICAib3BlcmF0aW9uIjogInNoaWZ0IiwKICAgICAgInNwZWMiOiB7CiAgICAgICAgIm1ldGhvZCI6ICJtZXRob2QiLAogICAgICAgICJVUkkiOiAiVVJJIiwKICAgICAgICAiaGVhZGVycyI6ICJoZWFkZXJzIiwKICAgICAgICAicGF5bG9hZCI6IHsKICAgICAgICAgICJpbmxpbmVkSnNvbkJvZHkiOiB7CiAgICAgICAgICAgICJ0b3AiOiB7CiAgICAgICAgICAgICAgInRhZ1RvRXhjaXNlIjogewogICAgICAgICAgICAgICAgIioiOiAicGF5bG9hZC5pbmxpbmVkSnNvbkJvZHkudG9wLiYiIAogICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgIioiOiAicGF5bG9hZC5pbmxpbmVkSnNvbkJvZHkudG9wLiYiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAiKiI6ICJwYXlsb2FkLmlubGluZWRKc29uQm9keS4mIgogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgfQogIH0sIAogewogICAic2NyaXB0IjogewogICAgICJvcGVyYXRpb24iOiAibW9kaWZ5LW92ZXJ3cml0ZS1iZXRhIiwKICAgICAic3BlYyI6IHsKICAgICAgICJVUkkiOiAiPXNwbGl0KCcvZXh0cmFUaGluZ1RvUmVtb3ZlJyxAKDEsJikpIgogICAgIH0KICB9CiB9LAogewogICAic2NyaXB0IjogewogICAgICJvcGVyYXRpb24iOiAibW9kaWZ5LW92ZXJ3cml0ZS1iZXRhIiwKICAgICAic3BlYyI6IHsKICAgICAgICJVUkkiOiAiPWpvaW4oJycsQCgxLCYpKSIKICAgICB9CiAgfQogfQpdCn1dCg=="] diff --git a/deployment/k8s/localTesting.sh b/deployment/k8s/localTesting.sh index b2b35b4ee..099c5568f 100755 --- a/deployment/k8s/localTesting.sh +++ b/deployment/k8s/localTesting.sh @@ -5,7 +5,7 @@ helm repo add strimzi https://strimzi.io/charts/ helm repo update helm dependency build mockCustomerClusters # not sure if this is required -helm upgrade mock-context mockCustomerClusters --values ../helmValues/localTesting/sourceElasticsearchCluster.yaml --values ../helmValues/localTesting/targetOpenSearchCluster.yaml --values ../helmValues/localTesting/captureProxy.yaml +helm install mock-context mockCustomerClusters --values ../helmValues/localTesting/sourceElasticsearchCluster.yaml --values ../helmValues/localTesting/targetOpenSearchCluster.yaml --values ../helmValues/localTesting/captureProxy.yaml kubectl port-forward service/capture-proxy 9200:9200 & kubectl port-forward service/elasticsearch 19200:9200 & kubectl port-forward service/opensearch 29200:9200 &