首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能通过泰克顿的开始。TaskRun实际上没有运行

不能通过泰克顿的开始。TaskRun实际上没有运行
EN

Stack Overflow用户
提问于 2021-01-06 23:59:10
回答 2查看 684关注 0票数 1

我在我的Linux机器上完成了本教程的最后一行:https://tekton.dev/docs/getting-started/。但是出了问题,我没有得到预期的echo结果。

为了跟踪TaskRun进度,运行:

代码语言:javascript
复制
➜  TWOC tkn task start hello && sleep 5 &&  kubectl get pods && tkn taskrun list
TaskRun started: hello-run-rjd2l

In order to track the TaskRun progress run:
tkn taskrun logs hello-run-rjd2l -f -n default
NAME                                             READY   STATUS    RESTARTS   AGE
twoc-backend-local-deployment-55b494d4cb-fjz6v   3/3     Running   12         7d22h
twoc-backend-local-deployment-55b494d4cb-vdtv5   3/3     Running   12         7d22h
NAME              STARTED   DURATION   STATUS
hello-run-5f4qc   ---       ---        ---
hello-run-5zck9   ---       ---        ---
hello-run-8sdmx   ---       ---        ---
hello-run-bvhdg   ---       ---        ---
hello-run-cdhz8   ---       ---        ---
hello-run-frbwf   ---       ---        ---
hello-run-pzvbz   ---       ---        ---
hello-run-q57p9   ---       ---        ---
hello-run-rjd2l   ---       ---        ---
hello-run-tpnt7   ---       ---        ---

➜  TWOC kubectl describe taskrun hello-run-5zck9 
Name:         hello-run-5zck9
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  tekton.dev/v1beta1
Kind:         TaskRun
Metadata:
  Creation Timestamp:  2021-01-06T17:34:43Z
  Generate Name:       hello-run-
  Generation:          1
  Managed Fields:
    API Version:  tekton.dev/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:generateName:
      f:spec:
        .:
        f:resources:
        f:serviceAccountName:
        f:taskRef:
          .:
          f:name:
      f:status:
        .:
        f:podName:
    Manager:         kubectl-create
    Operation:       Update
    Time:            2021-01-06T17:34:43Z
  Resource Version:  180093
  Self Link:         /apis/tekton.dev/v1beta1/namespaces/default/taskruns/hello-run-5zck9
  UID:               a9353809-44c0-4864-b131-f1ab52ac080d
Spec:
  Resources:
  Service Account Name:  
  Task Ref:
    Name:  hello
Events:    <none>
➜  TWOC tkn taskrun logs --last -f 
Error: task hello create has not started yet or pod for task not yet available
➜  TWOC kubectl describe task hello             
Name:         hello
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  tekton.dev/v1beta1
Kind:         Task
Metadata:
  Creation Timestamp:  2021-01-06T16:28:46Z
  Generation:          1
  Managed Fields:
    API Version:  tekton.dev/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:spec:
        .:
        f:steps:
    Manager:      kubectl-create
    Operation:    Update
    Time:         2021-01-06T16:28:46Z
    API Version:  tekton.dev/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
    Manager:         kubectl-client-side-apply
    Operation:       Update
    Time:            2021-01-06T17:34:07Z
  Resource Version:  180053
  Self Link:         /apis/tekton.dev/v1beta1/namespaces/default/tasks/hello
  UID:               4dc3e52e-4407-4921-8365-7e8845eb8c6b
Spec:
  Steps:
    Args:
      Hello World!
    Command:
      echo
    Image:  ubuntu
    Name:   hello
Events:     <none>
➜  TWOC git:(master) ✗ kubectl get pods --namespace tekton-pipelines
NAME                                           READY   STATUS    RESTARTS   AGE
tekton-dashboard-6884b7b896-qtx4t              1/1     Running   3          8d
tekton-pipelines-controller-7c5494d584-d6gkn   1/1     Running   5          8d
tekton-pipelines-webhook-59c94c5c6d-nh8wc      1/1     Running   3          8d
➜  TWOC git:(master) ✗ kubectl get pods                                                   
NAME                                             READY   STATUS    RESTARTS   AGE
twoc-backend-local-deployment-55b494d4cb-fjz6v   3/3     Running   9          7d20h
twoc-backend-local-deployment-55b494d4cb-vdtv5   3/3     Running   9          7d20h
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-01-15 20:12:30

最后,乔纳斯启发我,我的迷你库的内部网络有一个错误,我们无法解决,于是我决定创建一个GKE集群,使我能够成功地通过本教程。

票数 0
EN

Stack Overflow用户

发布于 2021-01-14 13:37:29

这个TaskRuns的清单:

代码语言:javascript
复制
NAME              STARTED   DURATION   STATUS
hello-run-5f4qc   ---       ---        ---
hello-run-5zck9   ---       ---        ---
hello-run-8sdmx   ---       ---        ---

并且没有相应的创建的Pods表明管道控制器不能正常工作。检查您的控制器的日志,看看是否有任何相关的问题,例如与kubectl logs tekton-pipelines-controller-7c5494d584-d6gkn

日志中的此错误:

Kind=Task失败: Post "https://tekton-pipelines-webhook.tekton-pipelines.svc:443/?timeout=30s":拨号TCP10.101.106.201:443:连接:连接被拒绝

表示存在一些连接问题。

当我跟着我的机器上带着Minikube的向导走时,它没有问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65604914

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档