我在Google平台上运行了一个Kubernetes集群。我有3个节点和几个豆荚运行在这些节点上。
其中一个豆荚运行着Ghost博客平台,并安装了一个gcePersistentDisk卷。创建pod的manifest文件:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: ghost
name: ghost
spec:
replicas: 1
template:
metadata:
labels:
name: ghost
spec:
containers:
- image: ghost:0.7
name: ghost
env:
- name: NODE_ENV
value: production
ports:
- containerPort: 2368
name: http-server
volumeMounts:
- name: ghost
mountPath: /var/lib/ghost
volumes:
- name: ghost
gcePersistentDisk:
pdName: ghost
fsType: ext4我想用某种方式从我的开发机器上访问这个卷。有办法把这个磁盘装在我的机器上吗?
发布于 2016-05-24 18:39:20
如果您的开发机器不是GCE集群(即GCE )的一部分,那么您将无法直接挂载它。在这种情况下,您最好的选择是通过一台将其挂载的机器将SSH安装到它(即,您的吊舱计划到的节点)。
https://stackoverflow.com/questions/37416644
复制相似问题