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
Copy file name to clipboardExpand all lines: website/docs/index.html.markdown
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,9 @@ Use the navigation to the left to read about the available resources.
15
15
16
16
```hcl
17
17
provider "kubernetes" {
18
-
config_path = "~/.kube/config"
18
+
config_paths = [
19
+
"~/.kube/config"
20
+
]
19
21
config_context = "my-context"
20
22
}
21
23
@@ -79,12 +81,6 @@ the provider will try to use the service account token from the `/var/run/secret
79
81
Detection of in-cluster execution is based on the sole availability both of the `KUBERNETES_SERVICE_HOST` and `KUBERNETES_SERVICE_PORT` environment variables,
80
82
with non empty values.
81
83
82
-
```hcl
83
-
provider "kubernetes" {
84
-
load_config_file = "false"
85
-
}
86
-
```
87
-
88
84
If you have any other static configuration setting specified in a config file or static configuration, in-cluster service account token will not be tried.
89
85
90
86
### Statically defined credentials
@@ -93,8 +89,6 @@ Another way is **statically** define TLS certificate credentials:
@@ -107,8 +101,6 @@ or username and password (HTTP Basic Authorization):
107
101
108
102
```hcl
109
103
provider "kubernetes" {
110
-
load_config_file = "false"
111
-
112
104
host = "https://104.196.242.174"
113
105
114
106
username = "username"
@@ -132,7 +124,7 @@ The following arguments are supported:
132
124
*`client_certificate` - (Optional) PEM-encoded client certificate for TLS authentication. Can be sourced from `KUBE_CLIENT_CERT_DATA`.
133
125
*`client_key` - (Optional) PEM-encoded client certificate key for TLS authentication. Can be sourced from `KUBE_CLIENT_KEY_DATA`.
134
126
*`cluster_ca_certificate` - (Optional) PEM-encoded root certificates bundle for TLS authentication. Can be sourced from `KUBE_CLUSTER_CA_CERT_DATA`.
135
-
*`config_path` - (Optional) Path to the kube config file. Can be sourced from `KUBE_CONFIG`.
127
+
*`config_paths` - (Optional) A list of paths to the kube config files. Can be sourced from `KUBE_CONFIG_PATHS`, which allows `:` to be used to delimit multiple paths.
136
128
*`config_context` - (Optional) Context to choose from the config file. Can be sourced from `KUBE_CTX`.
137
129
*`config_context_auth_info` - (Optional) Authentication info context of the kube config (name of the kubeconfig user, `--user` flag in `kubectl`). Can be sourced from `KUBE_CTX_AUTH_INFO`.
138
130
*`config_context_cluster` - (Optional) Cluster context of the kube config (name of the kubeconfig cluster, `--cluster` flag in `kubectl`). Can be sourced from `KUBE_CTX_CLUSTER`.
0 commit comments