Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在AWS EKS上的Kubernetes群集上运行Tiller_Kubernetes_Amazon Eks - Fatal编程技术网

如何在AWS EKS上的Kubernetes群集上运行Tiller

如何在AWS EKS上的Kubernetes群集上运行Tiller,kubernetes,amazon-eks,Kubernetes,Amazon Eks,我用terraform创建了EKS Kubernetes集群。一切都进行得很顺利,集群已经创建,上面有一台EC2机器。然而,我不能在那里初始化舵和安装舵柄。所有的密码都打开了 如README.md所述,在集群创建之后,我更新~/.kube/config,创建rbac,并尝试初始化helm。但是,它的pod仍在等待: $> kubectl --namespace kube-system get pods NAME READY STA

我用terraform创建了EKS Kubernetes集群。一切都进行得很顺利,集群已经创建,上面有一台EC2机器。然而,我不能在那里初始化舵和安装舵柄。所有的密码都打开了

如README.md所述,在集群创建之后,我更新
~/.kube/config
,创建rbac,并尝试初始化helm。但是,它的pod仍在等待:

$> kubectl --namespace kube-system get pods
NAME                             READY   STATUS    RESTARTS   AGE
coredns-7554568866-8mnsm         0/1     Pending   0          3h
coredns-7554568866-mng65         0/1     Pending   0          3h
tiller-deploy-77c96688d7-87rb8   0/1     Pending   0          1h
以及其他2个
coredns
pod

我错过了什么

更新:
描述的输出

$> kubectl describe pod tiller-deploy-77c96688d7-87rb8 --namespace kube-system
Name:               tiller-deploy-77c96688d7-87rb8
Namespace:          kube-system
Priority:           0
PriorityClassName:  <none>
Node:               <none>
Labels:             app=helm
                    name=tiller
                    pod-template-hash=3375224483
Annotations:        <none>
Status:             Pending
IP:
Controlled By:      ReplicaSet/tiller-deploy-77c96688d7
Containers:
  tiller:
    Image:       gcr.io/kubernetes-helm/tiller:v2.12.2
    Ports:       44134/TCP, 44135/TCP
    Host Ports:  0/TCP, 0/TCP
    Liveness:    http-get http://:44135/liveness delay=1s timeout=1s period=10s #success=1 #failure=3
    Readiness:   http-get http://:44135/readiness delay=1s timeout=1s period=10s #success=1 #failure=3
    Environment:
      TILLER_NAMESPACE:    kube-system
      TILLER_HISTORY_MAX:  0
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from tiller-token-b9x6d (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  tiller-token-b9x6d:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  tiller-token-b9x6d
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:          <none>
$>kubectl描述pod tiller-deploy-77c96688d7-87rb8——名称空间kube系统
名称:tiller-deploy-77c96688d7-87rb8
名称空间:kube系统
优先级:0
PriorityClassName:
节点:
标签:app=helm
名称=舵柄
pod模板哈希=3375224483
注释:
状态:待定
知识产权:
控制人:ReplicaSet/tiller-deploy-77c96688d7
容器:
舵柄:
图片:gcr.io/kubernetes头盔/舵柄:v2.12.2
端口:44134/TCP、44135/TCP
主机端口:0/TCP,0/TCP
活跃度:http get http://:44135/活跃度延迟=1s超时=1s周期=10s#成功=1#失败=3
准备就绪:http get http://:44135/准备就绪延迟=1s超时=1s周期=10s 35;成功=1#失败=3
环境:
TILLER_名称空间:kube系统
舵柄历史最大值:0
挂载:
/var/run/secrets/kubernetes.io/serviceaccount来自tiller-token-b9x6d(ro)
条件:
类型状态
播客计划错误
卷数:
tiller-token-b9x6d:
类型:Secret(由Secret填充的卷)
秘书名称:tiller-token-b9x6d
可选:false
QoS等级:最佳努力
节点选择器:
容差:node.kubernetes.io/未就绪:不执行300秒
node.kubernetes.io/不可访问:不执行300秒
活动:

尝试允许主机运行吊舱 根据这个问题,


您好,您能运行
kubectl description pod tiller-deploy-77c96688d7-87rb8吗?
?也没有节点,这很奇怪,因为在AWS.lol上创建了一个EC2实例,如果没有节点,那么它将处于挂起状态,但为什么没有节点?我能做些什么呢?如果有api调用来创建节点,你需要检查terraform的日志
kubectl taint nodes --all node-role.kubernetes.io/master-