Skip to content

Commit

Permalink
another checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
  • Loading branch information
gregschohn committed Oct 4, 2024
1 parent 0e201c2 commit 9c6f6f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion deployment/k8s/charts/migrationConsole/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
18 changes: 0 additions & 18 deletions deployment/k8s/charts/replayer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions deployment/k8s/charts/replayer/templates/replayer.yaml
Original file line number Diff line number Diff line change
@@ -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=="]
2 changes: 1 addition & 1 deletion deployment/k8s/localTesting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 9c6f6f4

Please sign in to comment.