摘要:
获取pod ip spec: containers: - name: xxx env: # 获取pod ip,并赋值给容器内的环境变量POD_IP - name: POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP 检 阅读全文
摘要:
业务机器准备镜像 Dockerfile FROM openjdk:8-jre-alpine # 配置同级目录下jar包名字 ENV JAR_NAME=awesome-java-0.1.jar # 工作目录/opt,jar包会被复制为/opt/app.jar WORKDIR /opt COPY $JA 阅读全文