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.
https://goreplay.org
Other
18.59k stars 17 forks source link

k8s error #1152

Open BridgeWind opened 1 year ago

BridgeWind commented 1 year ago

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

tibbon commented 1 year ago

Similar problem was seen in https://github.com/buger/goreplay/issues/1080#issuecomment-1253670729