ç®æ¬¡
- ç®æ¬¡
- ã¯ããã«
- ãã©ãããã©ã¼ã
- ã¤ã³ã¹ãã¼ã«æ¹å¼
- ã¤ã³ã¿ã¼ãããéæ¥ç¶ç°å¢
- ã¤ã³ã¹ãã¼ã«ãã¿ã¼ã³ã¨é£æ度ã«ã¤ãã¦
- ã¾ã¨ã
ã¯ããã«
ã¯ããã¾ãã¦ãRed Hatã§OpenShift Container Platformã®ãã¯ãã«ã«ãµãã¼ãã®ééã§ããRed Hat Advent Calendar 2023 ã®12/7ã®è¨äºã«ãªãã¾ããå¥ã§OpenShift Advent Calendar 2023 ãããã¾ãããã©ã¡ãã楽ããã§ãã ããã
OCP4.1ãGAããã2019å¹´ã«å ¥ç¤¾ãããã®è£½åã¨4å¹´ãã¨ãã«éããã¾ãããç¾å¨ã§ã¯ãã¤ãã¼ãã¼ã¸ã§ã³ã4.14ã¾ã§æ´æ°ããããããã¦ã¤ã³ã¹ãã¼ã«å¯è½ãªãã©ãããã©ã¼ã ãã¤ã³ã¹ãã¼ã«æ¹å¼ãå¢ãã¾ããã製åãæé·ãããªããã¨ãµã¨å ¬å¼ããã¥ã¡ã³ãã®installingã®é ç®ã確èªããã¨ãããã¶ã£ã¡ããå¤ããã¦èªãæ°ãªããã¾ããï¼åãå 容ã§æ¥æ¬èªè¨³ãèªãããã¡ãã®ããã¥ã¡ã³ããã¼ã¸ã§ã¯single-pageã§ã®è¡¨ç¤ºãã§ããã®ã§ãããã¤ã³ã¹ãã¼ã«ã®ãã¼ã¸ãsingle-pageã§éãã¨ãéãå¤ããã¦ç§ã®PCã®ãã©ã¦ã¶ãåºã¾ãã¾ãã試ãã¦ã¿ãå ´åã¯æ³¨æãã¦ãã ããã
ã½ããã¦ã§ã¢å©ç¨ã®æåã®ä¸æ©ã§ããã¤ã³ã¹ãã¼ã«ããããªã«è¤éã§ã¯ããæ°ããªããªã£ã¦ãã¾ãã¾ããã¨ãããã§ã¦ã¼ã¶ã¼ãå°ãã§ãåãå³ãããªãããã«ãå¿ è¦ãªåæç¥èãæ´çãã¦ã¿ã¾ãã
ãã©ãããã©ã¼ã
ã¾ãã¯ã¤ã³ã¹ãã¼ã«ãããã©ãããã©ã¼ã ãé¸æãã
ãã©ãããã©ã¼ã ã決å®ããªããã¨ã«ã¯å§ã¾ããªãã®ã§ãã¾ããã©ãããã©ã¼ã ãé¸æãã¾ãããã4.14æç¹ã§OpenShiftã¯AWSãAzureãvShereãªã©10ã®ãã©ãããã©ã¼ã ããµãã¼ããã¦ãã¾ãã
ã¤ã³ã¹ãã¼ã«ããã¥ã¡ã³ããè¥å¤§åãã¦ããä¸çªã®çç±ã¯ãå®ã¯ãã©ãããã©ã¼ã æ¯ã«æé ãåå¨ãã¦ããããã§ããããèªãã¨ãããããã®ãã©ãããã©ã¼ã ç¬èªã®æé 以å¤ã¯ãåãå 容ãè¨è¼ããã¦ãã¾ããã²ã¨ã¤ã®ãã©ãããã©ã¼ã ãé¸æããããã»ãã®æé ã¯èªãå¿ è¦ã¯ããã¾ããã®ã§ãããã¥ã¡ã³ãããªã¥ã¼ã ã«æ°å¾ãããå¿ è¦ã¯ããã¾ããã
any platformã¨baremetalã®æå³ã¨ã¡ãã£ã¨ããæ´å²ççµç·¯
ãã©ãããã©ã¼ã ã®any platformã¨baremetalã«ã¤ãã¦è£è¶³ãã¾ããany platform(æ¥æ¬èªããã¥ã¡ã³ãã§ã¯ãä»»æã®ãã©ãããã©ã¼ã ã)ã¯ãã®ååã®éããã©ãããã©ã¼ã ãé¸ã°ãªãã¤ã³ã¹ãã¼ã«æ¹æ³ã§ãããã¨ãã°vSphereã®VMãany platformæ¹å¼ã§ã¤ã³ã¹ãã¼ã«ãããããããã¯ããã¥ã¡ã³ãã«è¨è¼ã®ãªããã©ãããã©ã¼ã ã«ä½¿ããã¨ãã§ãã¾ããæã¯baremetalã¨ãã¦è¨è¼ããã¦ããã®ã§ãããä»®æ³ç°å¢ã§ã使ç¨ã§ãããã¨ããæ£ç¢ºæ§ã®ããã«ã4.6ããany platformã«å¤æ´ããã¾ããã以éã®baremetalã¯ãå称ã®ã¨ããç©çãµã¼ãã¼ãæ³å®ããæ¹æ³ã«ãªã£ã¦ãã¾ãããã®ãããªçµç·¯ããä»ãæ··åããã¦ãããã¨ãããã¾ãã®ã§ã注æãã¦ãã ããã
ã¤ã³ã¹ãã¼ã«æ¹å¼
IPIã¨UPIã¯ä½ãéãã®ã
ãã£ã¨ãã¹ã¿ã³ãã¼ããªã¤ã³ã¹ãã¼ã«æ¹å¼ã¯IPI(Installer Provisioned Infrastructure)ã¨UPI(User Provisioned Infrastructure)ã®2種é¡ã§ããåãã¶ãã«èª¬æããã¨ããèªåã§ãã¾ãããã¢ã¼ãã¨ãã¤ãããDIYãã¢ã¼ãã§ãã
IPIã§ã¯ãã¤ã³ã¹ãã¼ã©ã¼ã«install-config.yamlãã¡ã¤ã«ãèªã¿è¾¼ã¾ããã ãã§æ¸ã¿ã¾ãããã®æ¹æ³ã§ã¯ãå¿ è¦ãªã¤ã³ãã©ããã©ãããã©ã¼ã ã®æ©è½ã¨é£æºãã¦èªåçã«æ§æãã¾ããä¾ãã°AWSã§IPIã使ç¨ããã¨ããã¼ã(EC2)ã¯ãã¡ãããRoute 53ã®ã¬ã³ã¼ãç»é²ããããã¯ã¼ã¯ãä½æãã¦ããã¾ããã¤ã³ã¹ãã¼ã«å¾ãå¼ãç¶ããã©ãããã©ã¼ã ã¨é£æºãããããOpenShiftã®æ©è½ããã«å©ç¨ã§ããæ§æã§ãã
UPIã¯åºæ¬çã«ã¤ã³ãã©ãã¦ã¼ã¶ã¼å´ã§ç¨æãã¦æ§æãã¾ãããã®ããå½ç¶ã§ããIPIã¨æ¯ã¹ã¦æéãç¥èãå¿ è¦ã¨ãªãã¾ããå©ç¹ã¯ãIPIã§ã¯æ§æã§ããªãç´°ããã«ã¹ã¿ãã¤ãºãå¯è½ã«ãªãã¨ããç¹ã§ãããã®ãããåºæ¬çã«ã¯IPIã§æ§æããè²æ©ã§ããªãã«ã¹ã¿ãã¤ãºè¦ä»¶ãåå¨ããã¦ã¼ã¹ã±ã¼ã¹ã§ã¯UPIã使ãé¸æãä¸è¬çãã¨æãã¾ããã¤ã³ã¹ãã¼ã«ã®ç°¡åãã¨ã«ã¹ã¿ãã¤ãºæ§ã¯ãã¬ã¼ããªãã«ãªãã¨èãã¦ãã¾ãã
ãã®ä»ã®ã¤ã³ã¹ãã¼ã«æ¹å¼
IPIã¨UPI以å¤ã®ä»¥ä¸ã®ã¤ã³ã¹ãã¼ã«æé ã¯ããã¥ã¡ã³ãã¯ããã©ãããã©ã¼ã ã«é¢ãããç¬ç«ããé ç®ã«ãªã£ã¦ãã¾ããä¸è¨ã®èª¬æã¨ã¨ãã«ãªã³ã¯ãã覧ãã ããã
SNO(Single Node OpenShift)
åºæ¬çã«ã¯è¤æ°ã®ãã¼ãã§æ§æãããã¨ãé常ã®OpenShiftã§ããããªãã¨ä¸å°ã§ãä½ãã¦ãã¾ãã¾ããæ³å®ãããã¦ã¼ã¹ã±ã¼ã¹ã¯éä¿¡äºæ¥ç³»ã®ã¨ãã¸ã³ã³ãã¥ã¼ãã£ã³ã°ããå°å ¥ã¨ãã¦å°ãããªã½ã¼ã¹ã§æ¤è¨¼ãããããªå ´åã§ããå½ç¶ã§ããä¸å°ãªã®ã§HA(é«å¯ç¨æ§)æ©è½ã¯åãæ¨ã¦ããã¦ãã¾ãããµãã¼ãããããã©ãããã©ã¼ã ãªã©ã«å¶éããããããæ¡ä»¶ã«ã¤ãã¦ã¯ããã¥ã¡ã³ãã®Requirementsãã覧ãã ããã
Assisted Installer
ãªã³ãã¬ãã¹ç°å¢éå®ã¨ãªãã¾ãããWebä¸ã§å¯¾è©±å¼ã§è¨å®ã§ããæ¯æ´ãµã¼ãã¹ã«ããã¤ã³ã¹ãã¼ã«ã§ãã¾ããããä¸ã¤ã®å©ç¹ã§ãããbootstrap nodeãå¿ è¦ããã¾ããããã®ããããªã³ãã¬ãã¹ç°å¢ã§èª²é¡ã¨ãªããã¡ãªbootstrapç¨ã®ãªã½ã¼ã¹ç¢ºä¿ãä¸è¦ã¨ãªãã¾ããã¾ããåè¿°ã®SNOãæ§æã§ãã¾ãã
Agent-based installer
Assisted Installerã¯ç´ æ´ãããããããåããæ±ãã¦ãããªã³ãã¬ç°å¢ã¯ã¤ã³ã¿ã¼ãããã«æ¥ç¶ããªãã¯ãã¼ãºãç°å¢ãªãã ãã¨ããããªãã«ã¯Agent-based installerãããã¾ããbootstrapä¸è¦ã SNOã«ã対å¿ã¨ããAssitsted Installerã®å©ç¹ããããã¤ã¤ããCLIã§å®å ¨ãã¼ã«ã«ã«æ§æãããã¨ãã§ãã¾ããæ¯è¼çæ°ããã¤ã³ã¹ãã¼ã«æ¹å¼ã§4.12ããGAã¨ãªã£ã¦ãããã¾ã ã¾ã æ©è½å¼·åãäºå®ããã¦ãã¾ãã
ã¤ã³ã¿ã¼ãããéæ¥ç¶ç°å¢
Agent-basedã§ãå°ã触ãã¾ããããã¤ã³ã¿ã¼ãããã«æ¥ç¶ããªãéãããããããã¯ã¼ã¯ç°å¢ã§ã®æ§æãã¤ã¾ããã¤ã³ã¿ã¼ãããéæ¥ç¶ç°å¢ããæ±ããããã±ã¼ã¹ãããã¾ããè±æããã¥ã¡ã³ãããã¬ãã¸ã§ã¯disconnected networkã restricted network ãããã¯air-gapped networkã¨å¼ã°ãããã¨ãããã¾ãã
IPIãUPIã§ãå¯è½ã§ãããåãã©ãããã©ã¼ã ã®é ç®ã« restricted network ã¨ãã¦å¥é ã§æé ãè¨è¼ããã¦ãã¾ãããã ãããã ãã§ã¯æé ã¯ä¸è¶³ãã¦ãããäºåã«ãã©ã¼ã¬ã¸ã¹ããªãã¹ããæºåãã¦ããå¿ è¦ãããã¾ããé常ã¯ã¯ã©ã¹ã¿ãã¤ã¡ã¼ã¸ãªã©ã®ã³ã³ãã³ããã¤ã³ã¿ã¼ãããããåå¾ããããããã®ä»£æ¿ããããã¯ã¼ã¯å ã«æ§ç¯ããå¿ è¦ãããã¨ãããã¨ã§ãããã©ã¼ã®ä½ææ¹æ³ã¯å¹¾éããããããããã¥ã¡ã³ãã®Disconnected installation mirroringã®é ç®ã確èªãä½æãã¦ãã ããã
ã¤ã³ã¹ãã¼ã«ãã¿ã¼ã³ã¨é£æ度ã«ã¤ãã¦
ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦ã®ä¸éãã説æãã¾ããããçµã¿åããããã¨ã§ãã¿ã¼ã³ã¯ç¡æ°ã«åå¨ãã¾ããé¸æè¢ãå¤ããã¨ã¯ãããã¨ã§ãããã¤ã³ã¹ãã¼ã«ã®é£æ度(æéãäºåç¥è)ã«å·®ããããã¨ãçæãã¦ãã ããã
ä¾ãã°AWSã®ãããªã¯ã©ã¦ããããã¤ãã¼ãã©ãããã©ã¼ã ã®IPIã§ããã°installerããã¦ã³ãã¼ãããinstall-config.yamlãä½æãå®è¡ããã ãã§ããä½æ¥èªä½ã¯æ £ããã°10åããããã¾ãããããããany platformæ¹å¼ã®ã¤ã³ã¿ã¼ãããéæ¥ç¶ç°å¢ã¨ãªãã¨ãã¦ã¼ã¶ã¼ããã¼ãããããã¯ã¼ã¯ããã³ãã©ã¼ã¬ã¸ã¹ããªãã¹ããæ§ç¯ããå¿ è¦ããããäºåç¥èãæéã大ããç°ãªãã¾ãããã¾ãäºä¾ã®ç¡ãçµã¿åããã®ã¬ã¢ãªã¦ã¼ã¹ã±ã¼ã¹ã®å ´åã¯ãèç©ããããã¬ãã¸ãå°ãªãããæãã¬è½ã¨ãç©´ã«ã¯ã¾ãããããã¾ããããã¡ããæ§æã®é¸å®ã¯ã·ã¹ãã ã®è¦ä»¶ãåºã«ãªãã¹ãã§ãããã¾ãã¯ç°¡ç´ ãªæ§æ/æ¹å¼ããã¹ãããã¢ãããã¦ãããã¨ããããããããã¾ãã
ã¾ã¨ã
ã¾ãã¯ãµãã¼ãããã¦ãããã©ãããã©ã¼ã ãé¸ã¼ã
次ã«ã¤ã³ã¹ãã¼ã«æ¹å¼ãé¸ã¼ããç°¡åãªã®ã¯IPIãã«ã¹ã¿ãã¤ãºããããªãUPIããã®ä»ã®æ¹å¼ãé¸ã¹ãã
ã¤ã³ã¹ãã¼ã«æ¹å¼ã§æéãäºåç¥èã¯å¤§ããç°ãªãã®ã§ãä¾ãã°ã¤ã³ã¿ã¼ãããéæ¥ç¶ç°å¢ã®ãããªæ¡ä»¶ä»ãæ§æã¯é£æ度ãé«ããªããã¨ã«æ³¨æããã