小编Ali*_*Ali的帖子

无法在 minikube 中拉取任何镜像

我在 macOS 上并使用minikube驱动hyperkit程序:minikube start --driver=hyperkit

一切似乎都很好......

minikube status

minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
Run Code Online (Sandbox Code Playgroud)

minikube version

minikube version: v1.24.0
Run Code Online (Sandbox Code Playgroud)

kubectl version

Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:48:33Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:35:25Z", GoVersion:"go1.16.9", Compiler:"gc", Platform:"linux/amd64"}
Run Code Online (Sandbox Code Playgroud)

kubectl get no

NAME       STATUS   ROLES                  AGE   VERSION
minikube   Ready    control-plane,master   13m   v1.22.3
Run Code Online (Sandbox Code Playgroud)

我的问题是当我部署任何东西时,它不会提取任何图像......

例如:

kubectl create deployment …
Run Code Online (Sandbox Code Playgroud)

kubernetes minikube hyperkit

6
推荐指数
1
解决办法
3686
查看次数

由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录

当我使用 Heroku 启动 ML 模型时,构建日志显示:

Could not install packages due to an OSError: [Errno 2] No such file or directory: '/C:/Windows/TEMP/abs_e9b7158a-aa56-4a5b-87b6-c00d295b01fanefpc8_o/croots/recipe/certifi_1655968940823/work/certifi'
Run Code Online (Sandbox Code Playgroud)

请帮助解决这个问题。

python heroku

5
推荐指数
2
解决办法
2万
查看次数

kubernetes 服务器上的 dry-run 错误

和:

kubectl apply -f web.yaml --server-dry-run --validate=false -o yaml

我收到错误:

Error: unknown flag: --server-dry-run
See 'kubectl apply --help' for usage.
Run Code Online (Sandbox Code Playgroud)

甚至还有:

kubectl apply -f web.yaml --dry-run=server --validate=false -o yaml

我收到另一个错误:

Warning: resource deployments/web is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by kubectl apply. kubectl apply should only be used on resources created declaratively by either kubectl create --save-config or kubectl apply. The missing annotation will be patched automatically.
Error from server (Conflict): error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"creationTimestamp\":\"2021-12-30T08:51:06Z\",\"generation\":1,\"labels\":{\"app\":\"web\"},\"name\":\"web\",\"namespace\":\"default\",\"resourceVersion\":\"1589\",\"uid\":\"c2a4c20e-f55b-4113-b8e6-d2c19bb3e91c\"},\"spec\":{\"progressDeadlineSeconds\":600,\"replicas\":1,\"revisionHistoryLimit\":10,\"selector\":{\"matchLabels\":{\"app\":\"web\"}},\"strategy\":{\"rollingUpdate\":{\"maxSurge\":\"25%\",\"maxUnavailable\":\"25%\"},\"type\":\"RollingUpdate\"},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app\":\"web\"}},\"spec\":{\"containers\":[{\"image\":\"nginx\",\"imagePullPolicy\":\"Always\",\"name\":\"nginx\",\"resources\":{},\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"File\"}],\"dnsPolicy\":\"ClusterFirst\",\"restartPolicy\":\"Always\",\"schedulerName\":\"default-scheduler\",\"securityContext\":{},\"terminationGracePeriodSeconds\":30}}},\"status\":{}}\n"},"resourceVersion":"1589"}}
to:
Resource: …
Run Code Online (Sandbox Code Playgroud)

yaml kubernetes kubectl

3
推荐指数
1
解决办法
2647
查看次数

标签 统计

kubernetes ×2

heroku ×1

hyperkit ×1

kubectl ×1

minikube ×1

python ×1

yaml ×1