Skip to content

Commit

Permalink
Enable jaeger support in Porch
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Mar 7, 2024
1 parent b2dde3d commit a7dfc28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Vagrant.configure('2') do |config|
config.vm.box_check_update = false
config.vm.synced_folder './', '/vagrant'
config.vm.network 'forwarded_port', guest: 3000, guest_ip: '172.18.0.200', host: 3000
config.vm.network 'forwarded_port', guest: 16686, guest_ip: '127.0.0.1', host: 16686

# Initial setup
config.vm.provision 'shell', privileged: false, inline: <<-SHELL
Expand Down
10 changes: 10 additions & 0 deletions scripts/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ nodes:
extraMounts:
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock
extraPortMappings:
- containerPort: 30086
hostPort: 16686
EOF
_post_cluster_creation mgmt
fi
Expand Down Expand Up @@ -137,3 +140,10 @@ _deploy_kpt_pkg "distros/sandbox/repository" "mgmt" "/tmp/repository/mgmt-stagin

# Register repositories required for Workload Nephio cluster package operation
_deploy_kpt_pkgs "nephio/optional/stock-repos"

if [ "${ENABLE_PORCH_DEV:-true}" == "true" ]; then
kubectl apply -f https://raw.githubusercontent.com/nephio-project/porch/main/deployments/tracing/deployment.yaml
kubectl patch deployment porch-server -n porch-system --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/env/-", "value": {"name": "OTEL", "value": "otel://jaeger-oltp:4317"}}]'
KUBE_EDITOR='sed -i "s| type\: .*| type\: NodePort|g"' kubectl edit service -n porch-system jaeger-http
KUBE_EDITOR='sed -i "s| - nodePort\: .*| - nodePort: 30086|g"' kubectl edit service -n porch-system jaeger-http
fi

0 comments on commit a7dfc28

Please sign in to comment.