Google Cloud ã§éç¨ãã¦ãããµã¼ãã¹ã® Cloud Storage è²»ç¨ã10æã®æéæ¹å®ããçå¢ãã¦ããã
æéæ¹å®ã®ã¿ã¤ãã³ã°ã§ Cloud Storage ã®ãã«ããªã¼ã¸ã§ã³ãããã«ããªã¼ã¸ã§ã³å ã®ãªã¼ã¸ã§ã³ã¸ã®è»¢éè²»ç¨ãç¡æãããªããªã£ã¦ããã
Docker ã¤ã¡ã¼ã¸ã®è»¢éè²»ç¨ã«ãããã®ã§ããã°ãContainer Registry ãã Artifact Registry ã¸ç§»è¡ãããã¨ã§ãã®è²»ç¨ã¯ç¡ã«ã§ããã
ç¡ææ¡ä»¶ããªããªã£ã
Google Cloud å ã®ä¸ãï¼å¤åãï¼ãããã¯ã¼ã¯è²»ç¨ãè¦ãã
Internet Archive ã«æ®ã£ã¦ããéå»ã®æé表(2022-05-01)ã«ã¯ä»¥ä¸ã®è¨è¿°ããã£ãã
ãã«ããªã¼ã¸ã§ã³ã«ãã Cloud Storage ãã±ãããããã 1 ã¤ã®ãªã¼ã¸ã§ã³ã«ããå¥ã® Google Cloud ãµã¼ãã¹ã¸ã®ãã¼ã¿ã®ç§»åã§ã両æ¹ã®ãã±ã¼ã·ã§ã³ãåã大é¸ã«ããã
ç¡æ
ç¾è¡ã¯ããã®ç¡ææ¡ä»¶ããªããªã£ã¦ããããã«ã $0.08/GB ã¨ã¾ãã¾ãé«ãã®å¤æ®µè¨å®ã«ãªã£ãã
åã大é¸å ã®ç°ãªããã±ã¼ã·ã§ã³éã§ãã¼ã¿ã移åããå ´åã転éå ãã±ãã㯠ASIA ãã«ããªã¼ã¸ã§ã³ã«é ç½®ãããä¸è¨ã®ç¡æã±ã¼ã¹ã®ããããé©ç¨ãããªãã
$0.08/GB
Container Registry (GCR) ã®ã³ã³ããã¤ã¡ã¼ã¸ã¯ Cloud Storage ã®ãã«ããªã¼ã¸ã§ã³ãã±ããã«ä¿åãããã¤ã¡ã¼ã¸ãå©ç¨ããå®è¡ç°å¢ã¯ä½ããã®ãªã¼ã¸ã§ã³ã«ããã®ã§ããã®æ¡ä»¶ã«ããã£ã¦ãã¾ãã
ä»ã¾ã§ã¯ã¤ã¡ã¼ã¸ã¨å®è¡ç°å¢ã®ãã±ã¼ã·ã§ã³ãåããã¦ããã°ç¡æã§ä½¿ããã1ãä¸éããã«ããªã¼ã¸ã§ã³ãã±ããããã®è»¢éã«è²»ç¨ããããããã«ãªã£ã¦ãã¾ã£ãç¾å¨ã¯ããç¡æã§ä½¿ããã¨ã¯ã§ããªã!! asia ã»ã©ã®è²»ç¨ã«ã¯ãªããªãããgcr.io ãã us å ã¸ã®è»¢éã $0.02/GB ã¨ãç¡æã§ã¯ãªããªã£ã¦ããã
Artifact Registry ã使ã
Container Registry (GCR) ããå¾ã«å
¬éããã Artifact Registryã
GCR ã Docker ã¤ã¡ã¼ã¸ããã¹ãããåæ©è½ãªãã®ã ã£ãã®ã«å¯¾ãã¦ãMaven ã npm ã¢ã¸ã¥ã¼ã«ãªã©ããã¹ãã§ããã
移è¡ããã¢ããã¼ã·ã§ã³ã¯ç¹ã«ãªãã£ããã©ãä»åã®è²»ç¨æ¹å®ã§æããã«ã¡ãªãããçã¾ãã¦ãã¾ã£ãã
Artifact Registry ã¯ã¢ã¼ãã£ãã¡ã¯ããä¿åãããªãã¸ããªã®ãã±ã¼ã·ã§ã³ãé¸ã¶ãã¨ãã§ãããå®è¡ç°å¢ã¨åããã±ã¼ã·ã§ã³ã«ã¤ã¡ã¼ã¸ãç½®ããã¨ã§ãCloud Storage ã®ãããã¯ã¼ã¯è²»ç¨ãç¡æã«ãããã¨ãã§ãã!!
移è¡ããä½æ¥ã¯ç¹ã«é£ãããªããããã¥ã¡ã³ãã§ç§»è¡ã«ã¤ãã¦æ¡å ããã¦ããã
ã¢ã¯ã»ã¹æ¨©éå¨ãã«å¤§ããªå¤æ´ããã£ãããå°ããããªãã¨ã¯ãªãã£ãã
åããã¸ã§ã¯ãå
㧠Artifact Registry ã触ããããããªãµã¼ãã¹ãCloud Build ã GKE ã Cloud Run ã«ã¯ããã©ã«ã㧠Artifact Registry ã¸ã®èªã¿åã権éãã¤ãã¦ããã
GCR æ代ã®ã¢ã¯ã»ã¹ã³ã³ããã¼ã«ã¯ Cloud Storage ã® IAM ãã¼ã«ã§ããæãã§ããããã£ã±ã ãåããã¥ããã£ããã©ãArtifact Registry ã§ã¯ããç¨ã®ãã¼ã«ãè¨ãããããã¸ã§ã¯ãåä½ã§ãåå¥ã®ãªãã¸ããªã«å¯¾ãã¦ã権éãè¨å®ã§ããã
å®éã®ä½æ¥ã¨ãã¦ã¯ãAPI ãæå¹ã«ããArtifact Registry ã«ãªãã¸ããªãä½ã£ã¦ãGCR ã«ç½®ãã¦ããã¤ã¡ã¼ã¸ã Artifact Registry Registry ã«ä¸ããªããã¦ãk8s manifest ããããã¤ã³ãã³ããªã©åæã® image æå®ãæ´æ°ããç¨åº¦ã§ããã
ããã§ã°ã©ãã®å³ç«¯ã®ããã«ãã¾ã Cloud Storage è²»ç¨ãç¡ã«ã§ããããã§ãã
ä»åã®å¤ä¸ãã¨ãããããã¥ã¡ã³ãã®è¨è¿°ã¨ãããããªã Artifact Registry ã¸ã®ç§»è¡ãä¿ãã¦ãæããã¾ããã
Container Registry ã®é²åå½¢ã§ãã Artifact Registry ã¯ã https://cloud.google.com/artifact-registry?hl=ja
Container Registry ã¯å¼ãç¶ã使ç¨å¯è½ã§ãGoogle Enterprise API ã¨ãã¦ãµãã¼ãããã¦ãã¾ãããæ°æ©è½ã¯ Artifact Registry ã§ã®ã¿å©ç¨å¯è½ã§ããContainer Registry ã«ã¯ãéè¦ãªã»ãã¥ãªãã£ä¿®æ£ã®ã¿ä¸ãããã¾ãã https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr
Google Cloud ã®ããã¥ã¡ã³ãä¸ã® "大é¸" (continent ã«å¯¾ãã訳) ã£ã¦ç¬ç¹ã®æ¦å¿µã ãããASIA ãã«ããªã¼ã¸ã§ã³ã®åæã¯æµ·ã§éã¦ããã¦ãã(å°æ¹¾, é¦æ¸¯, æ±äº¬, ã ã³ãã¤, ...)2ãã®ã®ãåãæèã§å¤§é¸ã¨ãã¦åºã¦ãã "US" ã "EU" ã¨åãæ±ãã§ãã£ãããããããã§ãã§ãããæ¥ ASIA ã¯å¤§é¸ããããã¾ãã¼ãã¨è¨ããã¦ããããããªãæ°ããããã
- 以åæ¸ããè¨äºãgrc.io 㯠US æ±ãã§ãasia-northeast1 ã®å®è¡ç°å¢ã¸ã® image ã® pull ã«ã¯è»¢éè²»ç¨ãããããããasia.gcr.io ã使ããã¨ãã話ã https://blog.pokutuna.com/entry/gke-autopilot-storage-egress↩
- ã¢ã¸ã¢ã®ãã¼ã¿ã»ã³ã¿ã¼ãã¨ããæ¸ãã¦ããªãã https://cloud.google.com/storage/docs/locations#available-locations↩