1 Version compatibility
The version compatibility of kubeflow and kubernetes.
2 Environmental preparation
(1) Install kubernetes
(2) Install pv and pvc stored locally
安装local-path-storageclass
# docker pull rancher/local-path-provisioner:v0.0.11
# docker pull registry.cn-hangzhou.aliyuncs.com/rancher/local-path-provisioner:v0.0.11
# docker tag registry.cn-hangzhou.aliyuncs.com/rancher/local-path-provisioner:v0.0.11 rancher/local-path-provisioner:v0.0.11
# docker rmi registry.cn-hangzhou.aliyuncs.com/rancher/local-path-provisioner:v0.0.11
# kubectl create -f local-path-storage.yaml
# kubectl get sc --all-namespaces
(3) Install docker local private warehouse
(4) Mirror batch processing example
#!/bin/bash
images=(katib-frontend:v0.1.2-alpha-45-g3dce496 \
spartakus-amd64:v1.0.0 \
jupyterhub-k8s:v20180531-3bb991b1 \
tf_operator:v0.3.0 \
vizier-core:v0.1.2-alpha-45-g3dce496 \
suggestion-bayesianoptimization:v0.1.2-alpha-45-g3dce496 \
suggestion-grid:v0.1.2-alpha-45-g3dce496 \
suggestion-hyperband:v0.1.2-alpha-45-g3dce496 \
suggestion-random:v0.1.2-alpha-45-g3dce496 \
modeldb-backend:v0.2.0 \
centraldashboard:v0.3.0
)
for imageName in ${images[@]} ; do
docker pull zoux/$imageName
done
3 Installation
(1) Install kfctl
#tar -xzvf kfctl_v1.0.2-0-ga476281_linux.tar.gz
#mv kfctl /usr/bin/
#kfctl version
(2)
Install kubectl in the process of installing k8s, it has been installed.
(3) File kfctl_k8s_istio.v1.0.2.yaml
(3-1) Download kfctl_k8s_istio.v1.0.2.yaml and manifests-1.0.2.tar.gz
https://github.com/kubeflow/manifests/blob/master/kfdef/kfctl_k8s_istio.v1.0.2.yaml
https://github.com/kubeflow/manifests/archive/v1.0.2.tar.gz
v1.0.2.tar.gz就是manifests-1.0.2.tar.gz
(3-2) Modify the configuration file
repos:
- name: manifests
uri: https://github.com/kubeflow/manifests/archive/v1.0.2.tar.gz
修改为
repos:
- name: manifests
uri: file:///root/your102/manifests-1.0.2.tar.gz
(4) Run installation
mkdir -p /root/your102
cp kfctl_k8s_istio.v1.0.2.yaml /root/your102
cp manifests-1.0.2.tar.gz /root/your102
kfctl apply -V -f kfctl_k8s_istio.v1.0.2.yaml
(5) After installation, you need to download the image and modify the image pull strategy to repeat execution
kfctl apply -V -f kfctl_k8s_istio.v1.0.2.yaml
(6) Package and copy the kustomize folder generated by the installation
tar -czf kustomizefile.tar.gz /root/your102/kustomize/
以后安装前先解压使用
tar -xzvf kustomizefile.tar.gz -C /root/your102