You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Represents an ephemeral volume that is handled by a normal storage driver. More info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes",
693
+
Optional: true,
694
+
MaxItems: 1,
695
+
Elem: &schema.Resource{
696
+
Schema: map[string]*schema.Schema{
697
+
"metadata": {
698
+
Type: schema.TypeList,
699
+
Description: "May contain labels and annotations that will be copied into the PVC when creating it.",
700
+
Required: true,
701
+
MaxItems: 1,
702
+
Elem: &schema.Resource{
703
+
Schema: map[string]*schema.Schema{
704
+
"annotations": {
705
+
Type: schema.TypeMap,
706
+
Description: "An unstructured key value map stored with the persistent volume claim that may be used to store arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations",
707
+
Optional: true,
708
+
Elem: &schema.Schema{Type: schema.TypeString},
709
+
ValidateFunc: validateAnnotations,
710
+
},
711
+
"labels": {
712
+
Type: schema.TypeMap,
713
+
Description: "Map of string keys and values that can be used to organize and categorize (scope and select) the persistent volume claim. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
714
+
Optional: true,
715
+
Elem: &schema.Schema{Type: schema.TypeString},
716
+
ValidateFunc: validateLabels,
717
+
},
718
+
},
719
+
},
720
+
},
721
+
"spec": {
722
+
Type: schema.TypeList,
723
+
Description: "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.",
724
+
Required: true,
725
+
MaxItems: 1,
726
+
Elem: &schema.Resource{
727
+
Schema: persistentVolumeClaimSpecFields(),
728
+
},
729
+
},
730
+
},
731
+
},
732
+
}
733
+
690
734
v["persistent_volume_claim"] =&schema.Schema{
691
735
Type: schema.TypeList,
692
736
Description: "The specification of a persistent volume.",
Copy file name to clipboardExpand all lines: website/docs/r/pod.html.markdown
+1
Original file line number
Diff line number
Diff line change
@@ -907,6 +907,7 @@ The `items` block supports the following:
907
907
*`csi` - (Optional) CSI represents storage that is handled by an external CSI driver. For more info see [Kubernetes reference](https://kubernetes.io/docs/concepts/storage/volumes/#csi)
908
908
*`downward_api` - (Optional) DownwardAPI represents downward API about the pod that should populate this volume
909
909
*`empty_dir` - (Optional) EmptyDir represents a temporary directory that shares a pod's lifetime. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/volumes#emptydir)
910
+
*`ephemeral` - (Optional) Represents an ephemeral volume that is handled by a normal storage driver. More info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes.
910
911
*`fc` - (Optional) Represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
911
912
*`flex_volume` - (Optional) Represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
912
913
*`flocker` - (Optional) Represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
0 commit comments