<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>kubeconfig | 伪架构师</title>
    <link>/tags/kubeconfig/</link>
      <atom:link href="/tags/kubeconfig/index.xml" rel="self" type="application/rss+xml" />
    <description>kubeconfig</description>
    <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator><language>zh</language><lastBuildDate>Wed, 18 May 2016 01:48:04 +0800</lastBuildDate>
    <image>
      <url>/img/logo-wide.png</url>
      <title>kubeconfig</title>
      <link>/tags/kubeconfig/</link>
    </image>
    
    <item>
      <title>kubectl config 文件示例</title>
      <link>/post/kubeconfig-sample/</link>
      <pubDate>Wed, 18 May 2016 01:48:04 +0800</pubDate>
      <guid>/post/kubeconfig-sample/</guid>
      <description>&lt;pre&gt;&lt;code class=&#34;language-yaml&#34;&gt;apiVersion: v1
kind: Config
# Clusters 一节用于存储对多个 Master 的定义，大致包含证书，服务器地址等信息
clusters:
- cluster:
    certificate-authority: certs/pd/ca.crt
    server: https://10.211.55.87:6443
  name: pd-secure
# Users 一节用于存储用户凭据，可对应 Token, Basic 等验证方法
users:
- name: fake-user
  user:
    password: password
    username: admin  
# Contexts 这里会用上面的集群和用户信息，来形成完整的连接信息
contexts:
- context:
    cluster: pd-secure
    namespace: kube-system
    user: fake-user
  name: pd-local
# 当前生效的 Context，可以利用 kubectl config use-context 来切换
current-context: pd-local
preferences: {}
&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    
  </channel>
</rss>
