将应用程序发布到 MS Azure 中的 Kubernetes 集群时无法提供正确的 Kubeconfig

Cannot come up with the correct Kubeconfig when releasing an application to Kubernetes cluster in MS Azure

阅读本文后,我成功地在 VSTS 中创建了所有构建;但是,由于 Kubernetes 端点

,我无法通过 VSTS 版本

https://dgkanatsios.com/2017/05/29/creating-a-cicd-pipeline-on-azure-container-services-with-kubernetes-and-visual-studio-team-services/

我正在尝试为 Kubeconfig 输入正确的内容,但文件从未被接受

我确实尝试访问 ~/.kube/ 文件夹中的 Azure 云 shell 中的配置文件(使用 vi 编辑器),但该文件未被接受

此外,我 运行 命令 "kubectl config view" 并粘贴了内容,但我会收到一条错误消息 "no kind 'Config' is registered for version V1"

有什么我遗漏的直截了当的东西吗?

非常感谢您的慷慨支持

文件内容为

    apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlETURDQ0FoaWdBd0lCQWdJSWV0NzVtaVNhQ0FNd0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPREUxTURBd01EQXdXaGN
OTVRrd09ERTFNREF3TURBd1dqQVRNUkV3RHdZRFZRUUREQWhoWTNOck9ITmpZVENDDQpBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUxBQ1lva3pIOHZpZUY3RDBHcHl4VDFXdHZFMkhEbGx2WmdBDQpRYjVQYTVEamdsc2VnVWovQmczVStrczZ6amVGbXN
pSXlWS1p5aVlSQnRsSlI5ZnB2R0xYZzhxOW4vNVE3MlM5dEhyVGVmZ1o2WWU5DQo0U1JrV1AxT053bXN0Sk00cHNCL0R5QU5kOERRYXFYb0hTT2FjdkRjM2lFTzhZc0IzRjBydzRrU2lMTVlwUnRBQlZEbFZsQW1KbERqDQpxQVJWd3pzWDN5aUtQL1poTEc3cjlqemhqbjVXalpYTjM
yN3hIdlo4bWN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
- context:
    cluster: "myk8scluster-myresourcegroup2-b35f44mgmt"
    user: "myk8scluster-myresourcegroup2-b35f44mgmt-admin"
  name: "myk8scluster-myresourcegroup2-b35f44mgmt"
current-context: "myk8scluster-myresourcegroup2-b35f44mgmt"
kind: Config
users:
- name: "myk8scluster-myresourcegroup2-b35f44mgmt-admin"
  user:
    client-certificate-data: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlEUkRDQ0FpeWdBd0lCQWdJSUtnNGYxa2x5bC80d0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPREUxTURBd01EQXdXaGNOTV
Rrd09ERTFNREF3TURBd1dqQVZNUk13RVFZRFZRUUREQXByZFdKbFkyOXVabWxuDQpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTA1clN2UXZqbCthcGlvOURnZTVuNkl1QWx3d1ZsVklSDQp1QVNQMTArWHZtSGxMOEVnK1k1dVFUY1NRUEphaGRxd1
k1NnBVWmFaMWFVUUpSV2V3QWhBTWtsdWpWaGdRazJKYXRDdkRQV0dGcXFRDQpSc2ZkNkZJa2MxUCsxNHI3SVA1eHo4cXJvejRMUDJNUUZZanpoVlIwVTI0d1BzdGhjSFliSDl6R1JPaW12dUFwdytMbnpnUlBEdHRZDQpUeWg1R0l0VExaQVBVZk1yVWRHZnR0SUE1V01JeTc4OWVrdH
doK3dTVU9TbXpPUzhYaDVQMG5tOEw3WW9Gb05iSFhrUFhMMG9VNE9tDQp4NEVRK3IydEZ0MGU2eExyNUY3U0hlbzJFd1ZnYjNIL1BudkErRjh2NnBTaDZtbHIvM1dFTGRMaW5zblFRSCtKSFNLYndrTk1ncTRWDQorZlFwTndJREFRQUJvNEdaTUlHV01FSUdBMVVkSXdRN01EbUFGTk
5JVEVZUW9qb2cxVW9UZDhpRXY1eE9iNExFb1Jla0ZUQVRNUk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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

这是从第 92 行开始的日志

2017-08-29T14:40:36.4663420Z Download all required tasks. 2017-08-29T14:40:36.5194520Z Downloading task: Kubernetes 2017-08-29T14:40:37.4530470Z ##[section]Finishing: Initialize Job 2017-08-29T14:40:38.4092780Z ##[section]Starting: Download Artifacts 2017-08-29T14:40:38.6282060Z Downloading artifact 2017-08-29T14:40:38.6684580Z Creating artifacts directory: /opt/vsts/work/r1/a 2017-08-29T14:40:38.6966830Z Created artifacts directory: /opt/vsts/work/r1/a 2017-08-29T14:40:38.8251540Z Starting artifacts download... 2017-08-29T14:40:38.8797600Z Downloading linked artifact KubernetesCluster of type Build... 2017-08-29T14:40:38.8999340Z Ensuring artifact folder /opt/vsts/work/r1/a/KubernetesCluster exists and is clean. 2017-08-29T14:40:38.9380610Z Preparing to get the list of available artifacts from build 2017-08-29T14:40:39.2194670Z Preparing to download artifact: deploy 2017-08-29T14:40:39.2396450Z Artifact Type: ServerDrop 2017-08-29T14:40:39.2560460Z Downloading artifact from file container: #/2190836/deploy to target: /opt/vsts/work/r1/a/KubernetesCluster/deploy 2017-08-29T14:40:39.2877200Z Parallel download limit: 4 2017-08-29T14:40:39.3035960Z Download buffer size: 8192 2017-08-29T14:40:39.5527930Z Caching items under 'deploy' in the file container... 2017-08-29T14:40:39.6449920Z Caching complete. (75 ms) 2017-08-29T14:40:39.6734790Z Downloading file /opt/vsts/work/r1/a/KubernetesCluster/deploy/deploy.yaml 2017-08-29T14:40:39.9513700Z Download complete. 2017-08-29T14:40:39.9685490Z 1 placed file(s): 1 downloaded, 0 empty 2017-08-29T14:40:39.9840720Z 1 MB downloaded at 6 KB/sec. Download time: 00:00:00.2815253. 2017-08-29T14:40:40.0000810Z Downloaded linked artifact KubernetesCluster 2017-08-29T14:40:40.0158320Z Finished artifacts download 2017-08-29T14:40:40.0315320Z Downloading commits 2017-08-29T14:40:40.0950300Z ##[section]Finishing: Download Artifacts 2017-08-29T14:40:40.9837380Z ##[section]Starting: kubectl apply 2017-08-29T14:40:41.0806260Z ============================================================================== 2017-08-29T14:40:41.0982230Z Task : Deploy to Kubernetes 2017-08-29T14:40:41.1149960Z Description : Deploy, configure, update your Kubernetes cluster in Azure Container Service by running kubectl commands. 2017-08-29T14:40:41.1312870Z Version : 0.1.3 2017-08-29T14:40:41.1472790Z Author : Microsoft Corporation 2017-08-29T14:40:41.1631820Z Help : More Information 2017-08-29T14:40:41.1792190Z ============================================================================== 2017-08-29T14:40:46.5099920Z [command]/opt/vsts/work/_temp/kubectlTask/1504017644472/kubectl --kubeconfig /opt/vsts/work/_temp/kubectlTask/1504017644472/config apply -f /opt/vsts/work/r1/a/KubernetesCluster/deploy/deploy.yaml 2017-08-29T14:40:46.5292110Z error: Error loading config file "/opt/vsts/work/_temp/kubectlTask/1504017644472/config": [pos 1657]: json: error decoding base64 binary 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlETURDQ0FoaWdBd0lCQWdJSWV0NzVtaVNhQ0FNd0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPREUxTURBd01EQXdXaGN OTVRrd09ERTFNREF3TURBd1dqQVRNUkV3RHdZRFZRUUREQWhoWTNOck9ITmpZVENDDQpBU0l3RFFZSkt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ExwWm5MU1Z3L1BGQittc3F6aU1iRnlTSjdNLzdYY29tUm5aSjdSa21QN2owN2p4ZWJYMmF0T21MKzdmDQovNUFBdzNQZDZCRTFVRHBINzJSYk1hS1pjTkc1dm1UdGFzS0tjTnBZRWR2R2V ISEJRNmFoOG1mSC85eEMwalo4SzdOMWtCUmpQMWxpDQpkRUFYTkZQQU82RVp6RjBEZUhSdlRZeHJYS0hwY3c9PQ0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ0K': illegal base64 data at input byte 179 2017-08-29T14:40:46.6025270Z ##[error]error: Error loading config file "/opt/vsts/work/_temp/kubectlTask/1504017644472/config": [pos 1657]: json: error decoding base64 binary 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNSUlETURDQ0FoaWdBd0lCQWdJSWV0NzVtaVNhQ0FNd0RRWUpLb1pJaHZjTkFRRUxCUUF3RXpFUk1BOEdBMVVFQXd3SVlXTnphemh6DQpZMkV3SGhjTk1UY3dPREUxTURBd01EQXdXaGN OTVRrd09ERTFNREF3TURBd1dqQVRNUkV3RHdZRFZRUUREQWhoWTNOck9ITmpZVENDDQpBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUxBQ1lva3pIOHZpZUY3RDBHcHl4VDFXdHZFMkhEbGx2WmdBDQpRYjVQYTVEamdsc2VnVWovQmczVStrczZ6amVGbXN pSXlWS1p5aVlSQnRsSlI5ZnB2R0xYZzhxOW4vNVE3MlM5dEhyVGVmZ1o2WWU5DQo0U1JrV1AxT053bXN0Sk00cHNCL0R5QU5kOERRYXFYb0hTT2FjdkRjM2lFTzhZc0IzRjBydzRrU2lMTVlwUnRBQlZEbFZsQW1KbERqDQpxQVJWd3pzWDN5aUtQL1poTEc3cjlqemhqbjVXalpYTjM yN3hIdlo4bWNZWno3RytzcldqbmRsYzZEdGMwQ1ZFNWtPL2pGL0FpOHgwDQpmNzZJWUxlTk5CMFBpVzlwa1NadFZoNnYxUDY4UHFzTjZPVTUrS1NTNGFjaERDaDBuc1JVV1o3RjF6Rlh4RUxsNUZIaVQ0Mzk2dEdjDQpkMDhDQXdFQUFhT0JoekNCaERCQ0JnTlZIU01FT3pBNWdCVFR TRXhHRUtJNklOVktFM2ZJaEwrY1RtK0N4S0VYcEJVd0V6RVJNQThHDQpBMVVFQXd3SVlXTnphemh6WTJHQ0NIcmUrWm9rbWdnRE1CMEdBMVVkRGdRV0JCVFRTRXhHRUtJNklOVktFM2ZJaEwrY1RtK0N4REFQDQpCZ05WSFJNQkFmOEVCVEFEQVFIL01BNEdBMVVkRHdFQi93UUVBd0l DcERBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQWNyMlA0bHgzDQpWMDdFQVpHK1VYQ2pPbWJpU3RXWlR2d2JNanRLN2JWT3BtYlhWV2F5SWNONUFKejBFejhJczBnY3Z5cEM3VjV3b3NoUldGa1Y0V3Q4DQpTMGFyUmppQWZBdmVKMUZQZ3FVYi9GTjd1Q05BTUxSRXZkMDBQaW51VkJ uQk1jaVJiN1NsTmJqUkxvUWtaTGl1aFMzVnJtRURUQXBYDQpIYVI4c1lKVXNyeUFwODRoeExwWm5MU1Z3L1BGQittc3F6aU1iRnlTSjdNLzdYY29tUm5aSjdSa21QN2owN2p4ZWJYMmF0T21MKzdmDQovNUFBdzNQZDZCRTFVRHBINzJSYk1hS1pjTkc1dm1UdGFzS0tjTnBZRWR2R2V ISEJRNmFoOG1mSC85eEMwalo4SzdOMWtCUmpQMWxpDQpkRUFYTkZQQU82RVp6RjBEZUhSdlRZeHJYS0hwY3c9PQ0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ0K': illegal base64 data at input byte 179 2017-08-29T14:40:46.6583100Z ##[error]/opt/vsts/work/_temp/kubectlTask/1504017644472/kubectl failed with return code: 1 2017-08-29T14:40:46.7240620Z ##[section]Finishing: kubectl apply 2017-08-29T14:40:46.8777480Z ##[section]Finishing: Release

根据您提供的日志,配置文件中有一些意外的空白 space 字符导致非法错误。例如,在 179 个字节之后 "XdXaGN"。这些空白 space 字符在您之前提供的配置文件中不存在,因此可以在将内容复制然后粘贴到服务端点时添加。请检查并删除它们,然后重试。我只是在屏幕截图中列出了其中的一部分。

Eddie - MSFT,非常感谢您的指点!

我确实找到了麻烦的原因

问题是,一旦我从配置文件的 VI 编辑器中获取文本,我会将其粘贴到记事本中,记事本会换行并添加新行字符

我使用 TextPad 来确保编码的线条保持笔直

此后所有发布都顺利并成功

再次感谢您的帮助