Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wermarter committed Dec 27, 2024
1 parent 50e6eb3 commit 85dec93
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/hcdc-access-service/scripts/database/replicate-dev.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm -f hcdc.bak
mongodump --uri="mongodb://root:conculan@mongodb-0.mongodb-headless.diut.svc.cluster.local:27017,mongodb-1.mongodb-headless.diut.svc.cluster.local:27017,mongodb-2.mongodb-headless.diut.svc.cluster.local:27017/?retryWrites=true&loadBalanced=false&replicaSet=rs0&readPreference=primary&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-256" --archive="hcdc.bak" --db=hcdc
mongorestore --uri="mongodb://root:conculan@mongodb-0.mongodb-headless.diut.svc.cluster.local:27017,mongodb-1.mongodb-headless.diut.svc.cluster.local:27017,mongodb-2.mongodb-headless.diut.svc.cluster.local:27017/?retryWrites=true&loadBalanced=false&replicaSet=rs0&readPreference=primary&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-256" --archive="hcdc.bak" --nsFrom="hcdc.*" --nsTo="hcdc-dev.*"
mongodump --uri="mongodb://root:conculan@mongodb-0.mongodb-headless.infra.svc.cluster.local:27017,mongodb-1.mongodb-headless.infra.svc.cluster.local:27017,mongodb-2.mongodb-headless.infra.svc.cluster.local:27017/?retryWrites=true&loadBalanced=false&replicaSet=rs0&readPreference=primary&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-256" --archive="hcdc.bak" --db=hcdc
mongorestore --uri="mongodb://root:conculan@mongodb-0.mongodb-headless.infra.svc.cluster.local:27017,mongodb-1.mongodb-headless.infra.svc.cluster.local:27017,mongodb-2.mongodb-headless.infra.svc.cluster.local:27017/?retryWrites=true&loadBalanced=false&replicaSet=rs0&readPreference=primary&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-256" --archive="hcdc.bak" --nsFrom="hcdc.*" --nsTo="hcdc-dev.*"
rm hcdc.bak
13 changes: 9 additions & 4 deletions k8s/dependencies/7-envoy-gateway/templates/gateway-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ spec:
name: gateway-external
telemetry:
tracing:
samplingRate: 100
provider:
type: OpenTelemetry
backendRefs:
- name: tempo-distributor
namespace: observability
port: 4317
host: tempo-distributor.observability.svc.cluster.local
port: 4317
customTags:
forwarded.request.ip:
type: RequestHeader
requestHeader:
name: X-Forwarded-For
defaultValue: "-"
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ spec:
name: gateway-internal
telemetry:
tracing:
samplingRate: 100
provider:
type: OpenTelemetry
backendRefs:
- name: tempo-distributor
namespace: observability
port: 4317
host: tempo-distributor.observability.svc.cluster.local
port: 4317
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1
Expand Down

0 comments on commit 85dec93

Please sign in to comment.