Skip to content

Commit 0b0238c

Browse files
RC-42710 Docs update
1 parent e1c9acc commit 0b0238c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/resources/import_cluster.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ resource "rafay_import_cluster" "import_cluster" {
2828
}
2929
kubernetes_provider = "AKS"
3030
provision_environment = "CLOUD"
31+
32+
proxy_config {
33+
http_proxy = "http://10.100.0.10:8080/"
34+
https_proxy = "http://10.100.0.10:8080/"
35+
no_proxy = "10.0.0.0/16,localhost,127.0.0.1,internal-service.svc,webhook.svc,10.100.0.0/24,custom-dns.example.com,10.200.0.0/16,10.101.0.0/12,169.254.169.254,.internal.example.com,168.63.129.16,proxy,master.service.consul,10.240.0.0/16,drift-service.svc,*.privatelink.example.com,.privatelink.example.com"
36+
enabled = true
37+
proxy_auth = "username:password"
38+
allow_insecure_bootstrap = false
39+
bootstrap_ca = "<ca-certificate-data>"
40+
}
3141
}
3242
3343
output "values_data" {
@@ -66,6 +76,14 @@ output "bootstrap_path" {
6676
- `provision_environment` (String) This field is used to define the type of environment. The supported values are `CLOUD` and `ONPREM`
6777
- `values_path` - (String) The path to save the `values.yaml` file to. This is an optional parameter. If path is provided values.yaml will be downloaded to that path. Otherwise values.yaml will be downloaded to current directory and this output variable will be populated with path to the downloaded file.
6878
- `bootstrap_path` - (String) The path to save the `bootstrap.yaml` file to. This is an optional parameter. If path is provided bootstrap.yaml will be downloaded to that path. Otherwise bootstrap.yaml will be downloaded to current directory and this output variable will be populated with path to the downloaded file.
79+
- `proxy_config` - (Block, Optional) Proxy configuration for the cluster. Only one block can be specified. The following attributes are supported:
80+
- `http_proxy` - (String, Optional) HTTP proxy URL.
81+
- `https_proxy` - (String, Optional) HTTPS proxy URL.
82+
- `no_proxy` - (String, Optional) Comma-separated list of hosts that should bypass the proxy.
83+
- `enabled` - (Boolean, Optional) Whether proxy is enabled.
84+
- `proxy_auth` - (String, Optional) Proxy authentication string.
85+
- `allow_insecure_bootstrap` - (Boolean, Optional) Allow insecure bootstrap.
86+
- `bootstrap_ca` - (String, Optional) CA certificate for bootstrap.
6987
- `timeouts` - (Block) Sets the duration of time the create, delete, and update functions are allowed to run. If the function takes longer than this, it is assumed the function has failed. The default is 10 minutes. (See [below for nested schema](#nestedblock--timeouts))
7088

7189
<a id="nestedblock--timeouts"></a>

examples/resources/rafay_import_cluster/resource.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ resource "rafay_import_cluster" "import_cluster" {
1212
}
1313
kubernetes_provider = "AKS"
1414
provision_environment = "CLOUD"
15+
16+
proxy_config {
17+
http_proxy = "http://10.100.0.10:8080/"
18+
https_proxy = "http://10.100.0.10:8080/"
19+
no_proxy = "10.0.0.0/16,localhost,127.0.0.1,internal-service.svc,webhook.svc,10.100.0.0/24,custom-dns.example.com,10.200.0.0/16,10.101.0.0/12,169.254.169.254,.internal.example.com,168.63.129.16,proxy,master.service.consul,10.240.0.0/16,drift-service.svc,*.privatelink.example.com,.privatelink.example.com"
20+
enabled = true
21+
proxy_auth = "username:password"
22+
allow_insecure_bootstrap = false
23+
bootstrap_ca = "<ca-certificate-data>"
24+
}
1525
}
1626

1727
output "values_data" {

0 commit comments

Comments
 (0)