研发k8s-web管理平台
研发k8s-web管理平台
·
1、代码编写
2、制作docker镜像
Dockerfile文件
FROM python:3.8.14
MAINTAINER LYY
RUN apt-get update && apt-get install -y --no-install-recommends && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/app
COPY requirements.txt ./
ENV PYTHONUNBUFFERED=1
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
COPY . .
EXPOSE 8000
CMD ["python","manage.py","runserver","0.0.0.0:8000"]
查看镜像
docker images
3、运行镜像
docker run k8s-web:latest
4、获取config文件
sz .kube/config
5、登录系统
http://ip+8000
上传config文件
更多推荐
所有评论(0)