kubectl create namespace tekton-pipelines
kubectl create clusterrolebinding serviceaccounts-view --clusterrole=view --group=system:serviceaccounts
kubectl get pod -n tekton-pipelines -o=jsonpath='{range .items[*].spec.containers[*]}{.name}{"\n"}{end}' | uniq
确认您有权限: 如果您在命名空间之间切换,请确保您有权限访问在该命名空间中创建的资源。
验证配置: 在安装期间使用以下命令以编写创建Tekton资源的配置文件:
kubectl apply -f https://storage.googleapis.com/tekton-releases/...
确保命名空间和其他信息正确并匹配您的部署。
上述步骤应该解决“forbidden”错误消息问题,使您能够在Kubernetes中成功安装Tekton。