Skip to content

Commit a0d8826

Browse files
authored
Merge pull request #794 from Huang-Wei/bin-scheduler
use `/bin/kube-scheduler` and `/bin/controller` as the entrypoints of Dockerfiles
2 parents bcd19de + ae98811 commit a0d8826

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

build/controller/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ RUN make build-controller GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGET
2222

2323
FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE
2424

25-
WORKDIR /
25+
WORKDIR /bin
2626
COPY --from=builder /workspace/bin/controller .
2727
USER 65532:65532
2828

29-
ENTRYPOINT ["/controller"]
29+
ENTRYPOINT ["/bin/controller"]

build/scheduler/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ RUN make build-scheduler GO_BUILD_ENV='CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETA
2222

2323
FROM --platform=${BUILDPLATFORM} $DISTROLESS_BASE_IMAGE
2424

25-
WORKDIR /
25+
WORKDIR /bin
2626
COPY --from=builder /workspace/bin/kube-scheduler .
2727
USER 65532:65532
2828

29-
ENTRYPOINT ["/kube-scheduler"]
29+
ENTRYPOINT ["/bin/kube-scheduler"]

manifests/appgroup/deploy-appgroup-controller.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,4 @@ spec:
6060
containers:
6161
- name: appgroup-controller
6262
image: localhost:5000/appgroup-controller/controller:latest
63-
command:
64-
- /bin/controller
65-
imagePullPolicy: IfNotPresent
63+
imagePullPolicy: IfNotPresent

manifests/networktopology/deploy-networktopology-controller.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,4 @@ spec:
6969
containers:
7070
- name: networktopology-controller
7171
image: localhost:5000/networktopology-controller/controller:latest
72-
command:
73-
- /bin/controller
74-
imagePullPolicy: IfNotPresent
72+
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)