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: docs/index.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,10 @@ then either place it at the root of your Terraform folder or in the Terraform pl
57
57
58
58
## Configuration
59
59
60
-
The provider supports the same configuration parameters as the [Kubernetes Terraform Provider](https://www.terraform.io/docs/providers/kubernetes/index.html)
60
+
The provider supports the same configuration parameters as the [Kubernetes Terraform Provider](https://www.terraform.io/docs/providers/kubernetes/index.html),
61
+
with the addition of `load_config_file` and `apply_retry_count`.
62
+
63
+
> Note: Unlike the Terraform Kubernetes Provider, this provider will load the `KUBECONFIG` file if the environment variable is set.
61
64
62
65
```hcl
63
66
provider "kubectl" {
@@ -68,6 +71,31 @@ provider "kubectl" {
68
71
}
69
72
```
70
73
74
+
### Argument Reference
75
+
76
+
The following arguments are supported:
77
+
78
+
*`apply_retry_count` - (Optional) Defines the number of attempts any create/update action will take. Default `1`.
79
+
*`load_config_file` - (Optional) Flag to enable/disable loading of the local kubeconf file. Default `true`. Can be sourced from `KUBE_LOAD_CONFIG_FILE`.
80
+
*`host` - (Optional) The hostname (in form of URI) of the Kubernetes API. Can be sourced from `KUBE_HOST`.
81
+
*`username` - (Optional) The username to use for HTTP basic authentication when accessing the Kubernetes API. Can be sourced from `KUBE_USER`.
82
+
*`password` - (Optional) The password to use for HTTP basic authentication when accessing the Kubernetes API. Can be sourced from `KUBE_PASSWORD`.
83
+
*`insecure` - (Optional) Whether the server should be accessed without verifying the TLS certificate. Can be sourced from `KUBE_INSECURE`. Defaults to `false`.
84
+
*`client_certificate` - (Optional) PEM-encoded client certificate for TLS authentication. Can be sourced from `KUBE_CLIENT_CERT_DATA`.
85
+
*`client_key` - (Optional) PEM-encoded client certificate key for TLS authentication. Can be sourced from `KUBE_CLIENT_KEY_DATA`.
86
+
*`cluster_ca_certificate` - (Optional) PEM-encoded root certificates bundle for TLS authentication. Can be sourced from `KUBE_CLUSTER_CA_CERT_DATA`.
87
+
*`config_path` - (Optional) A path to a kube config file. Can be sourced from `KUBE_CONFIG_PATH` or `KUBECONFIG`.
88
+
*`config_paths` - (Optional) A list of paths to the kube config files. Can be sourced from `KUBE_CONFIG_PATHS`.
89
+
*`config_context` - (Optional) Context to choose from the config file. Can be sourced from `KUBE_CTX`.
90
+
*`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`.
91
+
*`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`.
92
+
*`token` - (Optional) Token of your service account. Can be sourced from `KUBE_TOKEN`.
93
+
*`exec` - (Optional) Configuration block to use an [exec-based credential plugin] (https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins), e.g. call an external command to receive user credentials.
94
+
*`api_version` - (Required) API version to use when decoding the ExecCredentials resource, e.g. `client.authentication.k8s.io/v1beta1`.
95
+
*`command` - (Required) Command to execute.
96
+
*`args` - (Optional) List of arguments to pass when executing the plugin.
97
+
*`env` - (Optional) Map of environment variables to set when executing the plugin.
98
+
71
99
### Exec Plugin Support
72
100
73
101
As with the Kubernetes Terraform Provider, this provider also supports using a `exec` based plugin (for example when running on EKS).
0 commit comments