Go
ãã°åºåãã©ããããã£ã¦ããã®ã¯ãGo æ¸ãã¨ãã«å¸¸ã«ã¡ãã£ã¨ããæ©ã¿ã®ç¨®ã§ããã æ¨æºã® log ããã±ã¼ã¸ã¯ãããã®ã®ãå®ç¨ã«ã¯æ©è½ãä¸è¶³ãã¦ããã¨è¦ãªã人ãå¤ãããã§ãã ããããç§ããã®ä¸äººã§ãè¿å¹´ã¯ Kubernetes çéã§ãã使ããã¦ãã以ä¸ãâ¦
使ããã¨ãããã³ã«å¿ãã¦èª¿ã¹ãªããã®ã§ã¡ã¢ã HTTP ã®ã¬ã¹ãã³ã¹ã³ã¼ã 100 ã¯ãã¯ã©ã¤ã¢ã³ãã大ããªãã¼ã¿ãéãåã«éä¿¡ãããã¬ãã«ã§ ãªã¯ã¨ã¹ãã®åä»ãå¯è½ã調ã¹ã¦ãå¦çå¯è½ãªããã£ããè¿ãããã«ããã ç¨éä¾ï¼ Authorization ãããã«ããèªâ¦
ä»äºã§ããã¼ã¿ã»ã³ã¿ã¼ã®ã¢ã¼ããã¯ãã£ãå·æ°ããããã¸ã§ã¯ããé²ãã¦ã¾ãã Kubernetes ãä¸å¿ã¨ãã¦ããã®ã§ãå¿ ç¶çã« Kubernetes ä¸ã§åä½ããã¢ããªã±ã¼ã·ã§ã³ãéçºããæ©ä¼ãããã¾ãã Kubernetes 㯠API ãµã¼ãã¼ (kube-apiserver) ã«ãªã½ã¼ã¹ãâ¦
æ¥å㧠Linux åãã® Go ããã°ã©ã ãå¤æ°éçºãã¦ãã¾ãã ããããªãããéçºãã¦ããæ©æã® OS ã¯å¥½ããã®ã㧠Windows ã§ãã å¨å® ããå¤åããã¨ãã«ãWindows ã®ãªã¢ã¼ããã¹ã¯ããããæå¼·ãããã®ã§ææ¾ããªãã®ã大ããªçç±ã§ãã ãããªããã§ãWiâ¦
å æ¥ GitHub ã«ãéçºä¸ã®ããã¾ã ãã¼ã¸ããã¹ãã§ãªãããã«ãªã¯ã¨ã¹ããä½ããã¨ãã§ãã Draft Pull Request æ©è½ã追å ããã¾ããã ä»ã®æ¥åã§ã¯è¤æ°äººã§ã¢ããããããããé¢ä¿ã§ãéçºéä¸ã®ãã©ã³ãã GitHub ã« push ãã¦ã²ã¨ã¾ããã«ãªã¯ã¨ã¹ããâ¦
å人çãªåå¿é²ã§ãã ä»äºä¸ Ubuntu ãã¿ã¼ã²ããã« Go ã®ããã°ã©ã éçºãããå¿ è¦ãããã®ã§ãããå¾å Windows ãã¹ã¯ãããã« Hyper-V ã® Ubuntu 㧠Emacs ã§éçºãã¦ããã¨ãããVisual Studio Code(vscode) ã«éçºç°å¢ãå¤ãããã¨èãã¾ãããçç±ã¯â¦
æè¿ CKE ã¨ãããã¢ã¡ã¿ã«åãã® Kubernetes 管çãã¼ã«ãä½ã£ã¦ãã¾ãã ãã¼ãã¹ãã©ãããã¼ã«ã§ã¯ãªãèªå¾çã»ç¶ç¶çã«ã¯ã©ã¹ã¿ã®æ§æãä¿®æ£ãã¦ãããã¼ã«ã§ã以ä¸ãç¹å¾´ã§ãã ãããã¯ã¼ã¯ãã©ã°ã¤ã³éä¾å HA å¯¾å¿ CKE èªä½ã®é«å¯ç¨æ§ ä»æ¥ã¯ CKE â¦
Go 1.7 ããæ¬ä½ã«å ¥ã£ã context ããã±ã¼ã¸ã¯ä¾¿å©ãã¨ããããä»ãå¿ é ã®éå ·ã§ãã以ä¸ã®ããã«æ¸ããã¨ã§ãä¸å®æéã§å¦çããã£ã³ã»ã«ã§ããããã¾ãã func slowOperationWithTimeout(ctx context.Context) (Result, error) { ctx, cancel := context.â¦
@songmu æ°ãããæµè´ããã ãããã¿ããªã® Go è¨èªãï¼ã¿ãGoï¼ãæ©éæèªãã¾ããã æ¸è©ã¨ãã¦ã¯ã¿ã¤ãã«éãããªã®ã§ããããã§ã¯ããã¾ããªã®ã§ããå°ãã æ¬æ¸ã§ãè¿°ã¹ããã¦ããéããGo è¨èªã¯æ©ããã°ä¸æ¥ã§å¤§ä½å¦ã¹ã¦ãã¾ãå¦ç¿å¹çã®è¯ããé åã§â¦
TL; DR ã»ã¨ãã©ã®å ´åãã¤ã³ã¿ã¡ã½ããã«ãã¦ããã°è¯ãã Go ã®ã¡ã½ããã¯ãã¬ã·ã¼ãã¼ã¨ãã¦å¤ï¼valueï¼ãåãåãããã¤ã³ã¿ãåãåããé¸æã§ãã¾ãã
Linux éå®ã§ãããbinfmt_misc ã使ãã° shell script ã Python ã¨åãããã«å®è¡ããããç«ã¦ãã ãã§å®è¡ã§ããããã«ãªãã¾ãã 以ä¸ã®ã¹ã¯ãªããã /usr/local/bin/gorun ã¨ã§ããã¦ä¿å #!/bin/sh exec go run "$@" Debian/Ubuntu ãªã update-binfmtâ¦