File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ kubectl relay -V
105105
106106## Usage
107107
108+ > [ !NOTE]
109+ > Starting from version v0.1.2, ` krelay ` attempts to tunnel SPDY through websocket, in line with how ` kubectl port-forward ` works.
110+ >
111+ > This behavior can be disabled by setting the environment variable ` KUBECTL_PORT_FORWARD_WEBSOCKETS ` to ` false ` .
112+
108113``` bash
109114# Listen on port 8080 locally, forwarding data to the port named "http" in the service
110115kubectl relay service/my-service 8080:http
Original file line number Diff line number Diff line change 11FROM golang:1.22.5 AS builder
22WORKDIR /workspace
3- ADD . .
4- RUN CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o krelay-server ./cmd/server
3+ RUN --mount=type=cache,target=/go/pkg/mod \
4+ --mount=type=cache,target=/root/.cache/go-build \
5+ --mount=target=. \
6+ CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o /tmp/server ./cmd/server
57
68FROM gcr.io/distroless/static:nonroot
79LABEL maintainer="Jian Zeng <anonymousknight96@gmail.com>"
8- COPY --from=builder /workspace/krelay- server /server
10+ COPY --from=builder /tmp/ server /server
911ENTRYPOINT ["/server"]
You can’t perform that action at this time.
0 commit comments