【发布时间】:2016-09-21 20:21:32
【问题描述】:
我有一个在 Google Cloud Platform 上运行的 Kubernetes 集群。我有 3 个节点和几个在这些节点上运行的 pod。
其中一个 pod 运行 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
我想通过我的开发机器访问这个卷。有没有办法在我的机器上挂载这个磁盘?
【问题讨论】:
标签: google-cloud-platform kubernetes gcloud