--- title: Docker + K8s 讀書會-K8s程式筆記-第1-3章 tags: Docker + K8s 讀書會 --- #K8s程式筆記-第1-3章 程式sop: 1.策劃:任務陳述,根本目的,它所處行業,要滿足的基本需求 第1章: K8S是可靠可擴展的分散式系統,支援"去耦化"(在我看起來就是伺服器的部屬) Pod=容器群 https://zh.wikipedia.org/wiki/Kubernetes 第2章:因為ubuntu太卡了~決定改用centOS http://isoredirect.centos.org/centos/8/isos/x86_64/CentOS-8.1.1911-x86_64-dvd1.iso 先下載:VMware Workstation https://www.vmware.com/tw/products/workstation-pro.html -可是這個之後要付費,聽說 還要下載PuTTY: pageant.exe (an SSH authentication agent for PuTTY, PSCP, PSFTP, and Plink) https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html FileZilla: https://filezilla-project.org/ 依照這位大大的講解https://pcrookie.com/?p=613 --- 還是要把centos裝在熟悉的vittualbox https://mitblog.pixnet.net/blog/post/37669630 創一個虛擬環境: https://blog.gtwang.org/linux/centos-7-installation-tutorial/ https://dotblogs.com.tw/Echo/2017/06/13/Linux_CentOS7_Installation 結果找不到.iso檔,網路上搜(有開機打開就變.iso)尋:https://mirrors.oit.uci.edu/centos/7.5.1804/isos/x86_64/ 中文的設定網站都不成功,我看了這個https://www.youtube.com/watch?v=NgR9Ly302E4 安裝目的最卡https://www.footmark.info/linux/centos/centos8-installation/ https://www.youtube.com/watch?v=Eb-FetgKB6k 或許我先安裝centos7比較好..因為centos8的bug要再下一版才知道 https://blog.gtwang.org/linux/centos-7-installation-tutorial/ --- https://ithelp.ithome.com.tw/articles/10192448 用GCP安裝是也有在想 --- 第3章 2.建立什麼: Kubernetes Install Minikube on Virtualbox on Windows 課本是用這個要從https://kubernetes.io/docs/tasks/tools/install-minikube/#before-you-begin 下載 有外國YOUTUBE可以參考 https://www.youtube.com/watch?v=Fr_mnfjkYsc 第一步要放安裝Kubectl 然後放在C槽 https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows 要裝在C:\K8S 才會跟影片一樣到下一步 資料夾裡面要生成:    看到Minikube  我是找不到 kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080 這句所以我用打的試試  找不到官方資料我看到這個有點像可以複製: https://ithelp.ithome.com.tw/articles/10192490  手KEY:kubectl get pod  貼minikube service hello-minikube --url 發現可以打在瀏覽器的網址 http://172.17.0.2:31006  但是我連不上QQ  還沒有試好就要刪了QQ kubectl delete services hello-minikube  我的VIRTULBOX沒開~雖然說後來也是刪了.. --- 我所根據的的書:[Kubernetes 建置與執行](https://www.tenlong.com.tw/products/9789864768226) 課外讀物:Kubernetes 權威指南
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up