682 views
Openshift === # OpenShift簡介 微服務架構應用日漸廣泛,Docker和Kubernetes技術是不可或缺的。Red Hat OpenShift 3是建立在Docker和Kubernetes基礎之上的容器應用平臺,用於開發和部署企業應用程序。 ![](https://minio.mcl.math.ncu.edu.tw:443/hackmd/uploads/upload_ef712b5084d5d7b7d6f5b6bb776b5d72.png) # OpenShift版本 * OpenShift Dedicated(Enterprise) * Private, high-availability OpenShift clusters hosted on Amazon Web Services or Google Cloud Platform * Delivered as a hosted service and supported by Red Hat * OpenShift Container Platform(Enterprise) * Across cloud and on-premise infrastructure * Customizable, with full administrative control * OKD * OpenShift開源社區版(Origin Community Distribution of Kubernetes) # OpenShift架構 ![](https://minio.mcl.math.ncu.edu.tw:443/hackmd/uploads/upload_1aa6f3ebfb71b6a793db5b33bd9dc72b.png) * Master Node提供的組件:API Server (負責處理客戶端請求, 包括node、user、 administrator和其他的infrastructure系統);Controller Manager Server (包括scheduler和replication controller);OpenShift客戶端工具 (oc) * ompute Node(Application Node) 部署application * Infra Node 運行router、image registry和其他的infrastructure服務 * etcd 可以部署在Master Node,也可以單獨部署, 用來存儲共享數據:master state、image、 build、deployment metadata等 * Pod 最小的Kubernetes object,可以部署一個或多個container # 網路 ![](https://minio.mcl.math.ncu.edu.tw:443/hackmd/uploads/upload_797605c429c2780afb1aeab5a6af9c6d.png) ## Router # 安裝 RPM安裝通過包管理器來安裝和配置服務,system container安裝使用系統容器鏡像來安裝服務, 服務運行在獨立的容器內。 從OKD 3.10開始, 如果使用Red Hat Enterprise Linux (RHEL)操作系統,將使用RPM方法安裝OKD組件。如果使用RHEL Atomic,將使用system container方法。不同安裝類型提供相同的功能, 安裝類型的選擇依賴於操作系統、你想使用的服務管理和系統升級方法。