Join us for a virtual Nutanix User Group meeting with Jarian Gibson as he covers Nutanix Cloud Clusters (NC2) on Azure and AWS with Citrix. <\/span><\/p>

Jarian will take a deep dive into NC2 on Azure architecture and Citrix on NC2 on Azure\u00a0that helps you strengthen your business continuity and disaster recovery position. He\u2019ll also provide the latest updates for NC2 on AWS.<\/span><\/p>

Plus, we're\u00a0giving away a Nutanix suitcase to one lucky winner!\u00a0Opt-in when you register\u00a0to be entered to win.\u00a0<\/p>","author":{"id":113632,"url":"\/members\/karlie-beil-113632","name":"Karlie Beil","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/1581aab3-bcf6-49f4-b2fb-3d11e8c010dc.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Community Manager","color":"#0873ba"},"userLevel":4},"type":"Webinar","url":"https:\/\/next.nutanix.com\/events\/global-nug-nc2-on-azure-and-aws-with-citrix-151","image":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/f9693b5b-436b-427a-9b98-531b4040ff24_thumb.png","location":"","startsAt":1678298400,"endsAt":1678302000,"contentType":"event","attendees":[],"attendeeCount":0,"isLoggedInUserAttendee":false,"createdAt":"1675974969"},"phrases":{"Forum":{"{n} year|{n} years":"{n} year|{n} years","{n} month|{n} months":"{n} month|{n} months","{n} day|{n} days":"{n} day|{n} days","{n} hour|{n} hours":"{n} hour|{n} hours","{n} minute|{n} minutes":"{n} minute|{n} minutes","just":"just now","{plural} ago":"{plural} ago"}}}">

问题

Karbon,Kubeconfig和API

  • 2020年9月2日
  • 1回复
  • 379意见

大家好,

我试图通过使用Karbon API来使Kubeconfig更新。除了kubeconfig文件的格式外,一切都很好。我有很多\ n字符和一些添加信息。

是否可以在没有所有这些的情况下获得正确的kubeconfig文件,或者我们必须清洁文件才能使其正常工作?

例如,这是文件的内容:

{“ kube_config”:“# - * - 模式:yaml; - * - * - \ n#vim:syntax = yaml \ n#\ napiversion:v1 \ nkind:config \ nclusers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cHXir8uy-9-UVH6PzXnfyapRm9fxyniDTfdgaeArmeKCIFC7U0J159n9O25WcMPhpN2qF39ZzsJmmj_-pL8C5NhivwjIPpP3E6yqJtkMSaaU18F0NG5p2YK2cdauS1szHjjG5OqsyMok9OksePBjEEnAwZAbllREA\ncontexts:\n- context:\n cluster: xxxx-xxxx-xxx\n user: default-user-xxx-xxx\n name: xxxx-xxx-xxx--context\ncurrent-context: xxx-xxxx-xxx-context\n\n"}


该主题已关闭以供评论

1回复

UserLevel 2
徽章 +3

我们将需要他发送的API电话。

URL,方法,Playload和其他标题(如果有)。看来该文件未发送在JSON中,建议将注意事项打开。我们不想揭露客户详细信息。

Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu