1.kfctl 다운로드 및 복사
curl -O -L https://github.com/kubeflow/kfctl/releases/download/v1.0.2/kfctl_v1.0.2-0-ga476281_linux.tar.gz
tar zxvf kfctl_v1.0.2-0-ga476281_linux.tar.gz
cp kfctl /usr/bin/
kfctl version
1.환경설정
vi ~/.bash_profile
export KF_NAME=myflow
export BASE_DIR=/kubeflow
export KF_DIR=${BASE_DIR}/${KF_NAME}
export CONFIG_URI="https://raw.githubusercontent.com/kubeflow/manifests/v1.0-branch/kfdef/kfctl_istio_dex.v1.0.2.yaml"
. ~/.bash_profile
mkdir -p ${KF_DIR}
cd ${KF_DIR}
pwd
3. kfctl_k8s_istio.v1.0.2.yaml다운로드
curl -O -L https://raw.githubusercontent.com/kubeflow/manifests/v1.0-branch/kfdef/kfctl_istio_dex.v1.0.2.yaml
**동적 스토리지 생성(github.com/rancher/local-path-provisioner#deployment)
- 있는 경우에는 4번으로 이동
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
샘플
kubectl create -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/examples/pvc.yaml
kubectl create -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/examples/pod.yaml
default storageClass
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
**주의
Unable to attach or mount volumes: unmounted volumes=[istio-token], unattached volumes=[sds-uds-path istio-token config-volume istio-certs istio-pilot-service-account-token-qcf4c]: timed out waiting for the condition 오류 발생시 조치사항
vi /etc/kubernetes/manifests/kube-apiserver.yaml
아래 내용 추가
- --service-account-signing-key-file=/etc/kubernetes/pki/sa.key
- --service-account-issuer=kubernetes.default.svc
4.kubeflow 설치
kfctl apply -V -f ${KF_DIR}/kfctl_istio_dex.v1.0.2.yaml
5.접속
kubectl get svc -n istio-system | grep NodePort
http://node-ip:31380/
계정 : admin@kubeflow.org
비번 : 12341234
http://node-ip:31380
ID : admin@kubeflow.org
PASS : 12341234
728x90
댓글