【发布时间】:2021-03-16 20:50:21
【问题描述】:
我在 AWS 中有一个集群,并在那里进行了部署。现在我想在那里附加一个外部 AWS 磁盘。我正在按照教程进行操作,但不知道如何在此处指示我的磁盘。代码如下:
apiVersion: v1
kind: Pod
metadata:
name: test-ebs
spec:
containers:
- image: k8s.gcr.io/test-webserver
name: test-container
volumeMounts:
- mountPath: /test-ebs
name: test-volume
volumes:
- name: test-volume
# This AWS EBS volume must already exist.
awsElasticBlockStore:
volumeID: "<volume id>"
fsType: ext4
在我看来,我应该以音量指示我的磁盘。那我应该在哪里获取volume id?以及如何将它连接到我的集群?
【问题讨论】:
标签: kubernetes amazon-ebs