pla*_*mer 5 storage persistent kubernetes kubernetes-pod
我刚刚开始在2个私有云服务器上的2节点(master-minion)设置上使用Kubernetes.我已经安装了它,做了基本的配置,并让它运行从主人到仆从的一些简单的pod /服务.
我的问题是:
如果不使用Google Cloud,如何在pod中使用持久存储?
对于我的第一次测试,我运行了一个Ghost Blog pod,但如果我撕掉了pod,则更改将丢失.尝试向pod添加卷,但实际上无法找到有关如何在GC上执行操作的文档.
我的尝试:
apiVersion: v1beta1
id: ghost
kind: Pod
desiredState:
manifest:
version: v1beta1
id: ghost
containers:
- name: ghost
image: ghost
volumeMounts:
- name: ghost-persistent-storage
mountPath: /var/lib/ghost
ports:
- hostPort: 8080
containerPort: 2368
volumes:
- name: ghost-persistent-storage
source:
emptyDir: {}
Run Code Online (Sandbox Code Playgroud)
发现:在Kubernetes上持久安装MySQL和WordPress
无法弄清楚如何在我的测试安装中添加存储(NFS?).
| 归档时间: |
|
| 查看次数: |
3245 次 |
| 最近记录: |