File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ RUN mkdir -p build && \
2222 -ldflags "${LDFLAGS}" .
2323
2424FROM --platform=$BUILDPLATFORM alpine:3.17
25- RUN apk add --no-cache ca-certificates
25+ RUN apk add --no-cache ca-certificates libcap
2626RUN adduser \
2727 --disabled-password \
2828 --gecos "" \
@@ -32,6 +32,8 @@ RUN adduser \
3232 kafka-proxy
3333
3434COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
35+ RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy
36+
3537USER kafka-proxy
3638ENTRYPOINT ["/opt/kafka-proxy/bin/kafka-proxy" ]
3739CMD ["--help" ]
Original file line number Diff line number Diff line change @@ -451,6 +451,9 @@ metadata:
451451 name: myapp
452452spec:
453453 replicas: 1
454+ selector:
455+ matchLabels:
456+ app: myapp
454457 template:
455458 metadata:
456459 labels:
You can’t perform that action at this time.
0 commit comments