mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
kube-addons: Use python container if python is not found on the machine.
To build the python image, BUILD_PYTHON_IMAGE should be set during make. When the addon script is running, it will check if python is installed on the machine, if not, it will use the python image that built previously.
This commit is contained in:
3
cluster/addons/python-image/Dockerfile
Normal file
3
cluster/addons/python-image/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM python:2.7-slim
|
||||
|
||||
RUN pip install pyyaml
|
6
cluster/addons/python-image/README.md
Normal file
6
cluster/addons/python-image/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# Python image
|
||||
|
||||
The python image here is used by OS distros that don't have python installed to
|
||||
run python scripts to parse the yaml files in the addon updator script.
|
||||
|
||||
[]()
|
Reference in New Issue
Block a user