buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

Home Page:https://goreplay.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s error

BridgeWind opened this issue · comments

when the run command like this:
docker run -it test_bi --input-raw k8s://default/pod/nginx-ff6774dc6-qzxrp:80 --output-stdout
it generates this error:
2023/01/08 10:00:46 pcap handles error

does any one know how to fix it?

steps:

1.inside goreplay-2.0.0-rc2 folder run :go build -ldflags "-extldflags "-static""
2.build the image with Dockerfile like below:

FROM alpine:3.16 as builder
RUN apk add --no-cache ca-certificates openssl

FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./goreplay .
ENTRYPOINT ["./goreplay"]

3.Run the docker image using:
docker run -it test_bi --input-raw k8s://default/pod/nginx-ff6774dc6-qzxrp:80 --output-stdout

4.get error like:
2023/01/08 10:00:46 pcap handles error

Similar problem was seen in #1080 (comment)