build: Adds Windows kube-proxy image

Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images,
which will allow it to build the a Windows kube-proxy image as well. That image can
then be used with Windows Host Process Containers to start the kube-proxy
service on Windows nodes.
This commit is contained in:
Claudiu Belu
2021-12-17 11:33:51 +00:00
parent 96a5cfe513
commit 3b0cec323e
6 changed files with 105 additions and 30 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 2024 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Dockerfile used for the server images.
# Note that the image doesn't really matter for Windows Host Process containers
# # the files in the image are copied to C:\hpc (containerd 1.7+) on the host
# # but the file system is the Host, NOT the container
ARG BASEIMAGE
ARG BINARY
FROM $BASEIMAGE
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
COPY ${BINARY} /kube-proxy/${BINARY}
ENTRYPOINT ["c:/hpc/kube-proxy/kube-proxy.exe"]