add vultr block storage mount
This commit is contained in:
parent
f68c6b227a
commit
43dbb951fe
@ -15,6 +15,22 @@ resource "vultr_kubernetes" "k8s" {
|
||||
|
||||
resource "local_sensitive_file" "kubeconfig" {
|
||||
content_base64 = vultr_kubernetes.k8s.kube_config
|
||||
filename = "~/.kube/vultr"
|
||||
filename = pathexpand("~/.kube/vultr")
|
||||
file_permission = "0600"
|
||||
}
|
||||
|
||||
resource "vultr_block_storage" "ssd0" {
|
||||
label = "cluster00-ssd0"
|
||||
size_gb = 10
|
||||
region = "ewr"
|
||||
block_type = "high_perf"
|
||||
attached_to_instance = vultr_kubernetes.k8s.node_pools[0].nodes[0].id
|
||||
live = true
|
||||
depends_on = [
|
||||
vultr_kubernetes.k8s
|
||||
]
|
||||
}
|
||||
|
||||
output "ssd0_mount" {
|
||||
value = vultr_block_storage.ssd0.mount_id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user