在macOS上重新安装后kubernetes超时

时间:2018-08-29 06:41:10

标签: kubernetes

我在Mac上遵循https://kubernetes.io/docs/tasks/tools/install-kubectl/上的说明,并使用brew安装了Kubernetes CLI。

ADJ = {}
""""
SRRXG
RXRXR
RRRXR
XRXRR
RRRRX
"""
ADJ['S'] = ['2', '6']
ADJ['2'] = ['S', '3']
ADJ['3'] = ['2','8']
ADJ['G'] = ['10']
ADJ['6'] = ['S', '11']
ADJ['8'] = ['3', '13']
ADJ['10'] = ['G', '15']
ADJ['11'] = ['6', '12']
ADJ['12'] = ['11', '13', '17']
ADJ['13'] = ['8', '12']
ADJ['15'] = ['10', '20']
ADJ['17'] = ['12','22']
ADJ['19'] = ['20', '24']
ADJ['20'] = ['15','19']
ADJ['21'] = ['22']
ADJ['22'] = ['17','21','23']
ADJ['23'] = ['22', '24']
ADJ['24'] = ['19','23']
print (ADJ)
# keep track of visited nodes
visited = {str(i) : False for i in range(1,26)}
visited['S'] = False
visited['G'] = False

def dls(start, goal):
    depth = 0
    limit = 200
    OPEN=[]
    CLOSED=[]
    OPEN.append(start)
    visited["S"] = True
    while OPEN != []: # Step 2
        if depth<=limit:
            current = OPEN.pop() 
            # visited[current] = False
            if current == goal:
                # CLOSED.append(current)
                print("Goal Node Found")
                # print(CLOSED)
                return True
            else:
                # CLOSED.append(current)
                lst = successors(current)
                for i in lst:
                    # try to visit a node in future, if not already been to it
                    if(not(visited[i])):
                        OPEN.append(i)
                        visited[i] = True
                depth +=1

        else:
            print("Not found within depth limit")
            return False


    return False

kubectl和Minikube已经安装了一段时间,所以我期待进行更新。现在,kubectl版本和kubernetes cluster-info超时。

ADJ

当我再次尝试安装kubernetes-cli时,我得到:

brew install kubernetes-cli

1 个答案:

答案 0 :(得分:0)

您可能已经安装了Minikube,但这并不一定意味着它正在积极运行。您需要运行minikube start才能在计算机上实际启动集群。这还将配置您的kubeconfig文件,使其指向其构建的集群。