<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doi-t</author_name>
  <author_url>https://blog.hatena.ne.jp/doi-t/</author_url>
  <blog_title>百日半狂乱</blog_title>
  <blog_url>https://doi-t.hatenablog.com/</blog_url>
  <categories>
    <anon>kubernetes</anon>
    <anon>GKE</anon>
    <anon>gcloud</anon>
    <anon>kubectl</anon>
  </categories>
  <description>手元のgcloudに紐付く複数のaccount/project/k8s cluster/k8s namespaceを持っている場合、とにかくどのアカウントで、何のロールで、どこのプロジェクトのどのクラスタに向かってgcloudやkubectlを叩いているのか都度確認しながら作業することになる。gcloudとkubectlはそれぞれconfigというリクエストの投げ先(context)の設定をするのに重要なサブコマンドを持っていて、これらを正しく設定しないと所望のプロジェクトなりクラスタにアクセスできない。サブコマンドがどちらもconfigという名前なので、慣れてくると覚えるキーワードが少なくて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoi-t.hatenablog.com%2Fentry%2F2018%2F03%2F21%2F213715&quot; title=&quot;gcloud config / kubectl config 事始め。 - 百日半狂乱&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/d/doi-t/20180321/20180321195140.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-21 21:37:15</published>
  <title>gcloud config / kubectl config 事始め。</title>
  <type>rich</type>
  <url>https://doi-t.hatenablog.com/entry/2018/03/21/213715</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
