我无法在Kubernetes中通过部署YAML上传文件。
部署YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
labels:
app: test
spec:
replicas: 1
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
im
我有这个pod定义: apiVersion: v1
kind: Pod
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 998 # Group ID of docker group on the node
containers:
- name: someconainter
image: someimage
resources:
requests:
memory: "8G"
c
下面有很多关于这个错误信息的问题,但是我仍然找不到解决方案。
docker: Error response from daemon: create /Users/siyang/Desktop/source:
"/Users/Jake/Desktop/source" includes invalid characters for a local volume name,
only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed.
If you intended to pass a host directory, use abs
我必须将本地.ssh目录内容共享给pod。我搜索hat,并从其中一篇文章中得到了答案,我以--mount-string的身份分享了这篇文章。 $ minikube start --mount-string="$HOME/.ssh/:/ssh-directory" --mount
? minikube v1.9.2 on Darwin 10.14.6
✨ Using the docker driver based on existing profile
? Starting control plane node m01 in cluster minikube
? Pul
我试图在mac上使用;为此目的,我使用。不过,我并不是所有这些方面的专家,所以我很难弄清楚如何让它发挥作用。
据我所知,Docker提供了一种在虚拟化环境中运行应用程序的方法,而不必虚拟化整个操作系统。因此,您下载(或创建)图像,并在“容器”中运行它们。
好的,所以我遵循了来使cntk库在Docker上工作;如果我列出了这些图像,我就会发现
$: docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/cntk latest
我正在尝试将现有的部署逻辑/切换更改为kubernetes (我的服务器在gcp中,到目前为止我使用了docker来运行我的服务器)。因此,我决定首先使用kompose并使用我现有的docker文件生成服务/部署。跑后
kompose --file docker-compose.yml convert
#I got warnings indicating Volume mount on the host "mypath" isn't supported - ignoring path on the host
经过一番研究,我决定使用下面的命令来“解决”这个问题。
k