Google cloud platform 库伯内特斯山';开发机器中的卷
我有一个运行在谷歌云平台上的Kubernetes集群。我有3个节点和几个吊舱在这些节点上运行 其中一个POD运行Ghost博客平台,并安装了Google cloud platform 库伯内特斯山';开发机器中的卷,google-cloud-platform,kubernetes,gcloud,Google Cloud Platform,Kubernetes,Gcloud,我有一个运行在谷歌云平台上的Kubernetes集群。我有3个节点和几个吊舱在这些节点上运行 其中一个POD运行Ghost博客平台,并安装了gcePersistentDisk卷。创建pod的清单文件: apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: name: ghost name: ghost spec: replicas: 1 template: metadata:
gcePersistentDisk
卷。创建pod的清单
文件:
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
我想以某种方式从我的开发机器访问此卷。有没有办法在我的机器上安装这个磁盘 如果您的开发机器不是GCE集群的一部分(即GCE VM),那么您将无法直接装载它。在这种情况下,最好的办法是通过挂载它的机器(即pod预定的节点)SSH到它