Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 库伯内特斯山';开发机器中的卷_Google Cloud Platform_Kubernetes_Gcloud - Fatal编程技术网

Google cloud platform 库伯内特斯山';开发机器中的卷

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:

我有一个运行在谷歌云平台上的Kubernetes集群。我有3个节点和几个吊舱在这些节点上运行

其中一个POD运行Ghost博客平台,并安装了
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到它