我是Kubernetes的新手。我正在尝试遵循this tutorial的指导,该指导告诉我如何使用minikube设置本地服务。通过本教程,我可以使用$ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080
服务来运行事情。晕!
现在,我想运行带有本地标记并构建的 Docker映像的服务器。根据{{3}},我需要做的就是告诉我的计算机使用minikube docker守护程序,构建我的映像,并将imagePullPolicy
设置为never。
如何将imagePullPolicy
设置为minikube
?我已经四处搜寻,虽然有很多结果,但我的K8处于“树林中的婴儿”状态导致信息过载。 (即答案越简单越好)
答案 0 :(得分:5)
您必须编辑Deployment(Get https://graph.microsoft.com/beta/users/{id}/photo/$value
创建一个部署)。规格看起来像这样:
from itertools import permutations
import pandas as pd
h = ['month-{}'.format(i) for i in range(1,7)]
b = [list(i) for i in permutations([i for i in range(1, 7)])]
pd.DataFrame(b, columns=h)
#output
Out[12]:
month-1 month-2 month-3 month-4 month-5 month-6
0 1 2 3 4 5 6
1 1 2 3 4 6 5
2 1 2 3 5 4 6
3 1 2 3 5 6 4
4 1 2 3 6 4 5
5 1 2 3 6 5 4
6 1 2 4 3 5 6
编辑方式:
kubectl run