Difference between revisions of "Terraform kubernetes resource: kubernetes persistent volume v1"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/persistent_volume_v1 | ||
+ | <pre> | ||
+ | resource "kubernetes_persistent_volume_v1" "example" { | ||
+ | metadata { | ||
+ | name = "terraform-example" | ||
+ | } | ||
+ | spec { | ||
+ | capacity = { | ||
+ | storage = "2Gi" | ||
+ | } | ||
+ | access_modes = ["ReadWriteMany"] | ||
+ | persistent_volume_source { | ||
+ | vsphere_volume { | ||
+ | volume_path = "/absolute/path" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
== Related == | == Related == |
Latest revision as of 12:34, 12 January 2024
resource "kubernetes_persistent_volume_v1" "example" { metadata { name = "terraform-example" } spec { capacity = { storage = "2Gi" } access_modes = ["ReadWriteMany"] persistent_volume_source { vsphere_volume { volume_path = "/absolute/path" } } } }
Related[edit]
See also[edit]
- Terraform provider: Kubernetes,
kubernetes_storage_class_v1, kubernetes_persistent_volume, kubernetes_manifest, kubernetes daemonset, kubernetes_service, kubernetes_namespace, kubernetes_service_account, kubernetes_secret, kubernetes_namespace, kubernetes_service_account_v1, kubernetes_secret_v1, kubernetes horizontal pod autoscaler v1, kubernetes_ingress_v1, kubernetes_persistent_volume_claim_v1
Advertising: