Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1007 from andrewmyhre/kubefed-image-uid
Browse files Browse the repository at this point in the history
configure images with a UID and set SC in deployments
  • Loading branch information
k8s-ci-robot authored Jun 20, 2019
2 parents 9e2e763 + eadabe9 commit cd944ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
labels:
kubefed-control-plane: controller-manager
spec:
securityContext:
runAsUser: 1001
serviceAccountName: kubefed-controller
containers:
- args:
Expand Down Expand Up @@ -60,6 +62,8 @@ spec:
labels:
kubefed-admission-webhook: "true"
spec:
securityContext:
runAsUser: 1001
serviceAccountName: kubefed-admission-webhook
containers:
- name: admission-webhook
Expand Down
7 changes: 4 additions & 3 deletions images/kubefed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@

FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN adduser -D hyperfed
RUN adduser -D -g hyperfed -u 1001 hyperfed

RUN mkdir -p /hyperfed && \
chown -R hyperfed:hyperfed /hyperfed
RUN mkdir -p /hyperfed

WORKDIR /hyperfed/
COPY /hyperfed .
RUN ln -s hyperfed controller-manager \
&& ln -s hyperfed kubefedctl \
&& ln -s hyperfed webhook

RUN chown -R hyperfed:hyperfed /hyperfed

USER hyperfed
ENTRYPOINT ["./controller-manager"]

0 comments on commit cd944ea

Please sign in to comment.