github.com/sixgill/terraform@v0.9.0-beta2.0.20170316214032-033f6226ae50/website/source/docs/providers/kubernetes/r/config_map.html.markdown (about)

     1  ---
     2  layout: "kubernetes"
     3  page_title: "Kubernetes: kubernetes_config_map"
     4  sidebar_current: "docs-kubernetes-resource-config-map"
     5  description: |-
     6    The resource provides mechanisms to inject containers with configuration data while keeping containers agnostic of Kubernetes.
     7  ---
     8  
     9  # kubernetes_config_map
    10  
    11  The resource provides mechanisms to inject containers with configuration data while keeping containers agnostic of Kubernetes.
    12  Config Map can be used to store fine-grained information like individual properties or coarse-grained information like entire config files or JSON blobs.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "kubernetes_config_map" "example" {
    18    metadata {
    19    	name = "my_config"
    20    }
    21    data {
    22    	api_host = "myhost:443"
    23    	db_host = "dbhost:5432"
    24    }
    25  }
    26  ```
    27  
    28  ## Argument Reference
    29  
    30  The following arguments are supported:
    31  
    32  * `data` - (Optional) A map of the configuration data.
    33  * `metadata` - (Required) Standard config map's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata
    34  
    35  ## Nested Blocks
    36  
    37  ### `metadata`
    38  
    39  #### Arguments
    40  
    41  * `annotations` - (Optional) An unstructured key value map stored with the config map that may be used to store arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations
    42  * `generate_name` - (Optional) Prefix, used by the server, to generate a unique name ONLY IF the `name` field has not been provided. This value will also be combined with a unique suffix. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#idempotency
    43  * `labels` - (Optional) Map of string keys and values that can be used to organize and categorize (scope and select) the config map. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels
    44  * `name` - (Optional) Name of the config map, must be unique. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
    45  * `namespace` - (Optional) Namespace defines the space within which name of the config map must be unique.
    46  
    47  #### Attributes
    48  
    49  * `generation` - A sequence number representing a specific generation of the desired state.
    50  * `resource_version` - An opaque value that represents the internal version of this config map that can be used by clients to determine when config map has changed. Read more: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#concurrency-control-and-consistency
    51  * `self_link` - A URL representing this config map.
    52  * `uid` - The unique in time and space value for this config map. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
    53  
    54  ## Import
    55  
    56  Config Map can be imported using its name, e.g.
    57  
    58  ```
    59  $ terraform import kubernetes_config_map.example my_config
    60  ```