Kubernetes v1.5 つまみ食い😋

9f9df80ab6551776b49c4ad9432ba1b7?s=47 Kazuki Suda
January 19, 2017

Kubernetes v1.5 つまみ食い😋

Kubernetes v1.5 の変更点について、いくつか紹介します。
Kubernetes Meetup Tokyo #3 - https://k8sjp.connpass.com/event/47525/

9f9df80ab6551776b49c4ad9432ba1b7?s=128

Kazuki Suda

January 19, 2017
Tweet

Transcript

  1. ,VCFSOFUFTWאת׫굸ְ ,VCFSOFUFT.FFUVQ5PLZP ,B[VLJ4VEBLB[VLJTVEB!HNBJMDPN 48&OHJOFFS ;-BC$PSQPSBUJPO !TVQFSCSPUIFST

  2. ,VCFSOFUFTW 䎃剢傈ٔٔ٦أ IUUQTHJUIVCDPNLVCFSOFUFTLVCFSOFUFTCMPCNBTUFS $)"/(&-0(NEW ,VCFSOFUFT'JWF%BZTPG,VCFSOFUFT $3* 4UBUFGVM4FU FY1FU4FU 8JOEPXT4FSWFS$POUBJOFSך؟ ه٦ز

    $MVTUFS'FEFSBUJPOך何㊣ 0QFO"1* 
  3. <CFUB>LVCFMFU"1*钠鏾٥钠〳 LVCFMFUכإٝءذ؍ـזر٦ةח،ؙإأׅ׷ؒٝسه؎ٝز ׾ⰕꟚ׃גְתׅ ֿ׸תדؽٕز؎ٝד،ؙإأ׾ⵖꣲׅ׷䩛媮כ㶷㖈׃תׇ׿ד ׃׋ָծLVCFMFUח钠鏾٥钠〳ך堣腉ָ鷄⸇ׁ׸ת׃׋ 钠鏾
 YDMJFOUDFSUJDBUF CFBSFSUPLFO BOPOZNPVT EFGBVMU

     钠〳8FCIPPL "MXBZT"MMPX EFGBVMU  ,VCFMFUBVUIFOUJDBUJPOBVUIPSJ[BUJPO
  4. <CFUB>3FQMJDB4FUה%FQMPZNFOUד㣟侁׃׋椚歋׾濼׷ ֿ׸תד3FQMJDB4FUה%FQMPZNFOUד1PEך⡲䧭זוח㣟侁׃ ׋הֹծ⾱㔓׾《䖤ׅ׷חכ1PEך&WFOUַ׵《䖤ׅ׷׃ַ֮ ׶תׇ׿ד׃׋ָծ㣟侁׃׋椚歋ָぐٔا٦أחろת׸׷״ֲח ז׶ת׃׋  $ kubectl get rs

    nginx-701339712 -o yaml | jq ‘.status.conditions.message’ “unable to create pods: pods "nginx-701339712-" is forbidden: exceeded quota: compute-resources, requested: pods=1, used: pods=1, limited: pods=1” LVCFSOFUFTGFBUVSFT LVCFSOFUFTGFBUVSFT
  5. <TUBCMF>LVCFDUMBQQMZד♶銲חז׏׋ٔا٦أ׾⵴ꤐׅ׷ ֿ׸תדLVCFDUMBQQMZדכٔا٦أָوصؿؑأزַ׵⵴ꤐׁ ׸ג׮⡲䧭ׁ׸׋תתד׃׋ָծQSVOFؔفءّٝ׾אֽ׷ֿ הד♶銲חז׷ٔا٦أ׾⵴ꤐדֹ׷״ֲחז׶ת׃׋ 㹋遤儗חٓكٕ׾䭷㹀ׅ׷䗳銲ָ֮׶תׅ  $ kubectl apply --prune

    -f manifest.yaml -l app=nginx deployment "nginx2" configured deployment "nginx1" pruned LVCFSOFUFTGFBUVSFT
  6. <TUBCMF>4FSWJDFדؙٓأة㢩ך؟٦ؽأ׾鏣㹀ׅ׷ 4FSWJDFד&YUFSOBM/BNF׾䭷㹀ׅ׷ֿהדծؙٓأة%/4؟٦ ؽأכFYUFSOBM/BNFח鏣㹀ׁ׸׋سً؎ٝ׾$/".&ה׃ג鵤 ׅ״ֲחז׶תׅ  kind: Service apiVersion: v1 metadata:

    name: my-service namespace: prod spec: type: ExternalName externalName: my.database.example.com LVCFSOFUFTGFBUVSFT
  7. <TUBCMF>ؙٓأة鋉垷ח䘔ׄג1PE׾ؔ٦زأ؛٦ٕׅ׷ LVCFEOT %/4؟٦ؽأ זוך،فٔ؛٦ءّٝכؙٓأة鋉 垷ח䘔ׄגأ؛٦ׇׁٕ׋ְָծֿ׸תד׉ך״ֲז堣腉כ䲿⣘ ׁ׸גְתׇ׿ד׃׋ DMVTUFSQSPQPSUJPOBMBVUPTDBMFS׾⢪ֲֿהדؙٓأة鋉垷ח 䘔ׄגؔ٦زأ؛٦ׇׁٕ׷ֿהָדֹ׷״ֲחז׶ת׃׋  LVCFSOFUFTJODVCBUPSDMVTUFSQSPQPSUJPOBMBVUPTDBMFS

  8. <CFUB>LVCFDUMESBJOד،فٔ؛٦ءّٝך〳欽䚍׾㼣ꅾׅ׷ ظ٦سך刿倜זודLVCFDUMESBJO׾ⵃ欽׃ג僇爙涸ח1PE׾䱖 ꤐׅ׷הֹծ׉ךظ٦سחろת׸׷1PEָ⵴ꤐׁ׸׷ה،فٔ ؛٦ءّٝך〳欽䚍ָ㣟׻׸׷〳腉䚍ָ֮׶תׅ 1PE%JTSVQUJPO#VEHFUٔا٦أ׾⢪欽ׅ׷ה僇爙涸ז䱖ꤐד〳 欽䚍׾䬐⥂ׅ׷׋׭ח䗳銲זٖفٔؕ侧׾♴㔐׷הֹծ䱖ꤐָ㣟 侁ׅ׷״ֲחז׶ת׃׋  4BGFMZ%SBJOJOHB/PEFXIJMF3FTQFDUJOH"QQMJDBUJPO4-0T

  9. %BTICPBSE6* Ⰻגךِ٦ؠぢֽٔا٦أה׉׸׵ךٔا٦أ⢪欽ꆀָ邌爙ׁ׸ ׷״ֲחז׶ת׃׋ ٔا٦أ⢪欽ꆀך邌爙חכծ)FBQTUFSָ⹛⡲׃גְ׷䗳銲ָ֮ ׶תׅ  IUUQTHJUIVCDPNLVCFSOFUFTEBTICPBSESFMFBTFTUBHW

  10. None
  11. 5JNFMJOFGPSW %FD+BOQMBOOJOHEFTJHOCVHYQFSJPE +BO 5VFT DPEJOHTUBSU X  +BO 5VFT GFBUVSFTSFQPGSFF[F

    'FC .PO 'FC 'SJ 'FBUVSF#VSOEPXO.FFUJOHT 'FC .PO GFBUVSFDPNQMFUF NPWFUPCVHY X  .BSDI 8FET SFMFBTFDBOEJEBUFCSBODIDVU .BSDI 8FET SFMFBTF  IUUQTHJUIVCDPNLVCFSOFUFTGFBUVSFTCMPCNBTUFSSFMFBTFSFMFBTFNE