æè¿GCPのPMLE試é¨ã«ç¡äºåæ ¼ããããã®è©¦é¨åå¼·ã®éã«åé¡ã¨ãã¦è§¦ãããã¨ãå¤ãã£ãKubeflowã«ããã¶ãèå³ã湧ããã®ã§èªå® PCã«ç°å¢æ§ç¯ãè¡ã£ã¦ã¿ãããã®è¨äºã¯ç°å¢æ§ç¯æé ã«ã¤ãã¦ã¡ã¢çã«æ®ãããã®ãã®ã
æ§ç¯æé ã«ã¤ãã¦ã¯å
人ã®ããã°ã¨å
¬å¼ã®githubãåèã«ããªããé²ããã
venoda.hatenablog.com
github.com
- 注æç¹
- äºåã»ããã¢ãã
- Kubectl v1.31.0ã®ã¤ã³ã¹ãã¼ã«
- Kustomize v5.4.2ã®ã¤ã³ã¹ãã¼ã«
- kubeflow v1.9.1ã®ã¤ã³ã¹ãã¼ã«
- ããã·ã¥ãã¼ãã«ã¢ã¯ã»ã¹ãã
注æç¹
ã¤ã³ã¹ãã¼ã«ããkubeflowã®ãã¼ã¸ã§ã³ã¯å¸¸ã«ææ°çãè¯ãã¨ããããã§ã¯ãªããkubernetesã®ãã¼ã¸ã§ã³ã¨ã®äºææ§ã確èªããå¿ è¦ãããã
ä»åã¯kubernetes 1.30.5ã ã£ãã®ã§ãææ°çã®kubeflow v1.19.1ãã¤ã³ã¹ãã¼ã«ããã
ã¾ããkubeflowã®ã¤ã³ã¹ãã¼ã«ã«å¿
è¦ãªkustomizeã¨kubectlããããããµãã¼ããã¼ã¸ã§ã³ãæå®ããã¦ããã®ã§ç¢ºèªãããã¨ã
kubectlã®ãµãã¼ããã¼ã¸ã§ã³ã«ã¤ãã¦ã¯kubernetesã®å
¬å¼ã«ã¦èª¬æããã¦ããã
kubernetes.io
ããã«ããéããkubectlã¯kubernetesã®ãã¼ã¸ã§ã³ã®Â±1ã®ç¯å²ããµãã¼ããã¼ã¸ã§ã³ã®ãããä»åã¯v1.31.0ãã¤ã³ã¹ãã¼ã«ããã
äºåã»ããã¢ãã
WSL2ã®æå¹åã¨Docker DesktopãUbuntu 24.04LTSãäºåã«ã¤ã³ã¹ãã¼ã«ãã¦ããå¿
è¦ãããã
ãããã®ã¤ã³ã¹ãã¼ã«æé ã®èª¬æã¯å²æã
ãªããUbuntuãã¤ã³ã¹ãã¼ã«ããåã«WSLã®ãã¼ã¸ã§ã³ã¯ææ°çã«ã¢ãããã¼ããã¦ãããã»ããããããã
WSLã®ã¢ãããã¼ãã¯ä»¥ä¸ã®ã³ãã³ããPowerShellãªã©ã§å®è¡ããã
wsl.exe --update
ç°å¢
- Windows11 24H2
- ããã»ããµ: Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz 3.60 GHz
- ã¡ã¢ãª: 32.0 GB
WSL --versionã®çµæ
WSL ãã¼ã¸ã§ã³: 2.3.26.0
ã«ã¼ãã« ãã¼ã¸ã§ã³: 5.15.167.4-1
WSLg ãã¼ã¸ã§ã³: 1.0.65
MSRDC ãã¼ã¸ã§ã³: 1.2.5620
Direct3D ãã¼ã¸ã§ã³: 1.611.1-81528511
DXCore ãã¼ã¸ã§ã³: 10.0.26100.1-240331-1435.ge-release
Windows ãã¼ã¸ã§ã³: 10.0.26100.2605
Kubectl v1.31.0ã®ã¤ã³ã¹ãã¼ã«
åè
kubectl.docs.kubernetes.io
export os="linux/amd64" curl -LO "https://dl.k8s.io/release/v1.31.0/bin/$os/kubectl" chmod +x ./kubectl sudo mv ./kubectl /usr/local/bin/kubectl
for check
$ kubectl version --client Client Version: v1.31.0 Kustomize Version: v5.4.2
Kustomize v5.4.2ã®ã¤ã³ã¹ãã¼ã«
curl -LO https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.4.2/kustomize_v5.4.2_linux_amd64.tar.gz tar -zxf kustomize_v5.4.2_linux_amd64.tar.gz chmod +x ./kustomize sudo mv ./kustomize /usr/local/bin/kustomize
for check
~$ kustomize version v5.4.2
kubeflow v1.9.1ã®ã¤ã³ã¹ãã¼ã«
大éã®podsãçæã§ããããã«Ubuntuã®è¨å®ãå¤æ´
sudo sysctl fs.inotify.max_user_instances=2280 sudo sysctl fs.inotify.max_user_watches=1255360
kubeflowã®manifestãªãã¸ããªãcloneãã¦v1.9.1ã®ãã©ã³ããcheckout
git clone https://github.com/kubeflow/manifests.git cd ./manifests git checkout -b v1.9.1-branch origin/v1.9.1-branch
One Line ã³ãã³ãã§å¿ è¦ãªpodsããã¹ã¦ã¤ã³ã¹ãã¼ã«
while ! kustomize build example | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 20; done
æçµãã§ãã¯ãkubeflowã®podsãåãã¦ããã確èª
kubectl get pods -n kubeflow
ããã·ã¥ãã¼ãã«ã¢ã¯ã»ã¹ãã
Portforward
kubectl port-forward svc/istio-ingressgateway -n istio-system 8080:80
åæã®usernameã¨passwordã¯ä»¥ä¸ã
email: [email protected] password: 12341234
åæãã°ã¤ã³æ
å ±ã¨å¤æ´ã®ä»æ¹ã¯ä»¥ä¸ã«è¨è¼ãããã
https://github.com/kubeflow/manifests?tab=readme-ov-file#dex
ç¡äºããã·ã¥ãã¼ãã表示ã§ããã