Skip to content

Commit ea1d78d

Browse files
committed
fix dockerfile
1 parent e266123 commit ea1d78d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ COPY main.go main.go
1010

1111
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -a -o kvm-device-plugin main.go
1212

13-
FROM gcr.io/distroless/static:nonroot
13+
FROM alpine:3.18
1414
WORKDIR /
1515
COPY --from=builder /workspace/kvm-device-plugin .
16-
USER 65532:65532
16+
RUN mkdir -p /var/lib/kubelet/device-plugins/
1717

1818
ENTRYPOINT ["/kvm-device-plugin"]

Diff for: manifests/kvm-device-plugin.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spec:
2929
serviceAccountName: kvm-device-plugin
3030
containers:
3131
- name: kvm-device-plugin
32+
imagePullPolicy: Always
3233
image: docker.io/kaasops/kvm-device-plugin:v1.0.0
3334
securityContext:
3435
privileged: true

0 commit comments

Comments
 (0)