离线环境 需要修改镜像
比如PyTorchJob,会包含initContainer,image是 alpine,需要修改镜像地址
可以通过参数来指定镜像地址
--pytorch-init-container-image
--mpi-kubectl-delivery-image
apiVersion: apps/v1
kind: Deployment
metadata:
name: training-operator
labels:
control-plane: kubeflow-training-operator
spec:
selector:
matchLabels:
control-plane: kubeflow-training-operator
replicas: 1
template:
metadata:
labels:
control-plane: kubeflow-training-operator
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
- command:
- /manager
- --pytorch-init-container-image=alpine:3.10
- --mpi-kubectl-delivery-image=mpioperator/mpi-operator:latest
image: kubeflow/training-operator:v1-855e096
name: training-operator
ports:
- containerPort: 8080
env: