Skip to content

Commit

Permalink
fix: k8s manifest for exportation
Browse files Browse the repository at this point in the history
  • Loading branch information
highpon committed Dec 16, 2024
1 parent 8264562 commit fb9f1e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cmd/index/job/exportation/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exporter:
index_path: "/var/export/index"
gateway:
addrs:
- localhost:20000
- vald-lb-gateway.default.svc.cluster.local:8081
health_check_duration: "1s"
connection_pool:
enable_dns_resolver: true
Expand Down
19 changes: 4 additions & 15 deletions k8s/index/job/exportation/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,17 @@ spec:
pyroscope.io/port: "6060"
spec:
initContainers:
- name: wait-for-agent
initContainers:
- name: wait-for-gateway-lb
image: busybox:stable
imagePullPolicy: Always
command:
- /bin/sh
- -e
- -c
- |
until [ "$(wget --server-response --spider --quiet http://vald-agent.default.svc.cluster.local:3001/readiness 2>&1 | awk 'NR==1{print $2}')" == "200" ]; do
echo "waiting for agent to be ready..."
sleep 2;
done
- name: wait-for-discoverer
image: busybox:stable
imagePullPolicy: Always
command:
- /bin/sh
- -e
- -c
- |
until [ "$(wget --server-response --spider --quiet http://vald-discoverer.default.svc.cluster.local:3001/readiness 2>&1 | awk 'NR==1{print $2}')" == "200" ]; do
echo "waiting for discoverer to be ready..."
until [ "$(wget --server-response --spider --quiet http://vald-lb-gateway.default.svc.cluster.local:3001/readiness 2>&1 | awk 'NR==1{print $2}')" == "200" ]; do
echo "waiting for gateway-lb to be ready..."
sleep 2;
done
containers:
Expand Down

0 comments on commit fb9f1e4

Please sign in to comment.