GKE&Concourse:与服务器localhost:8080的连接被拒绝

时间:2018-11-01 06:14:38

标签: kubernetes pipeline concourse

我对Kubernetes还是陌生的,他试图在后台创建管道以将应用程序部署在Google Kubernetes Engine(GKE)上。

我已经在GKE上创建了集群,现在尝试使用K8S资源创建大厅管道,并配置了kubconfig文件,但是当我运行fly命令将更改发布到大厅UI时,它失败并出现以下错误:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.9", GitCommit:"e6ab4ee54f71e7a403cc733534bab86fd959ecb7", GitTreeState:"clean", BuildDate:"2018-10-16T12:14:47Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}The connection to the server localhost:8080 was refused - did you specify the right host or port?

以下是我的管道配置的摘要:

resource_types:
- name: kubernetes
  type: docker-image
  source:
    repository: zlabjp/kubernetes-resource
    tag: "1.12"

resources:
- name: k8s
  type: kubernetes
  source:
    kubeconfig: |
      apiVersion: v1
      clusters:
      - cluster:
          certificate-authority-data: ((cert_auth-data))
      server: https://xx.xx.xx.xx:8080    
      name: ((name))
      contexts:
      - context:
          cluster: ((name))
          user: ((name))
        name: ((name))
      current-context: ((name))
      kind: Config
      preferences: {}
      users:
      - name: ((name))
        user:
          client-certificate-data: ((client-certificate-data))
          client-key-data: ((client-key-data))

对于服务器标签,我正在通过群集端点。

不确定是否已链接,但是我无法从本地计算机上通过telnet编号为8080的群集端点IP地址进行远程登录。

我假设只有在kubeconfig中出现问题时才会调用localhost,但是我无法理解这里可能出了什么问题。

任何帮助将不胜感激。 TIA !!

0 个答案:

没有答案