Skip to content

Commit

Permalink
Merge pull request #794 from Huang-Wei/bin-scheduler
Browse files Browse the repository at this point in the history
use `/bin/kube-scheduler` and `/bin/controller` as the entrypoints of Dockerfiles
  • Loading branch information
k8s-ci-robot authored Aug 25, 2024
2 parents bcd19de + ae98811 commit a0d8826
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN make build-controller GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGET

FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE

WORKDIR /
WORKDIR /bin
COPY --from=builder /workspace/bin/controller .
USER 65532:65532

ENTRYPOINT ["/controller"]
ENTRYPOINT ["/bin/controller"]
4 changes: 2 additions & 2 deletions build/scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RUN make build-scheduler GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETA

FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE

WORKDIR /
WORKDIR /bin
COPY --from=builder /workspace/bin/kube-scheduler .
USER 65532:65532

ENTRYPOINT ["/kube-scheduler"]
ENTRYPOINT ["/bin/kube-scheduler"]
4 changes: 1 addition & 3 deletions manifests/appgroup/deploy-appgroup-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ spec:
containers:
- name: appgroup-controller
image: localhost:5000/appgroup-controller/controller:latest
command:
- /bin/controller
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,4 @@ spec:
containers:
- name: networktopology-controller
image: localhost:5000/networktopology-controller/controller:latest
command:
- /bin/controller
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent

0 comments on commit a0d8826

Please sign in to comment.