@@ -4,8 +4,6 @@ The cluster configuration file can be generated by using [`clusterctl generate c
4
4
This command actually uses [ a template file] [ template-file ] and replaces the values surrounded by ` ${} ` with environment variables.
5
5
You have to set all required environment variables in advance. The following sections explain some more details about what should be configured.
6
6
7
- Note: You can also use [ template files] [ template-file ] by manually replacing values in copies of the template file.
8
-
9
7
``` bash
10
8
clusterctl generate cluster capi-quickstart \
11
9
--kubernetes-version v1.21.3 \
@@ -14,9 +12,25 @@ clusterctl generate cluster capi-quickstart \
14
12
> capi-quickstart.yaml
15
13
```
16
14
17
- Note: additional template files are provided, offering capabilities beyond the default template file. These can be
18
- utilized via the * clusterctl --flavor* parameter. Additional environment variables are often required by these templates.
19
- See clusterctl documentation for further details about * flavors* .
15
+ You can also use [ template files] [ template-file ] by manually replacing values in copies of the template file.
16
+
17
+
18
+ > ** Note**
19
+ >
20
+ > Additional template files are provided, offering capabilities beyond the default template file. These can be
21
+ > utilized via the * clusterctl --flavor* parameter. Additional environment variables are often required by these templates.
22
+ > The following flavors are supported as of now:
23
+ > - * managed-ssh*
24
+ > - * ssh-material*
25
+ > - * with-disk-offering*
26
+ > - * with-existing-vpc-network*
27
+ > - * with-kube-vip*
28
+ >
29
+ > To check the available variables for a flavor, execute the following command:
30
+ > ``` bash
31
+ > clusterctl generate cluster capi-quickstart --flavor < flavor> --list-variables
32
+ > ` ` `
33
+ > See clusterctl documentation for further details about * flavors* .
20
34
21
35
In order to fetch the configuration parameters via the terminal, please install [cmk][cmk-download] and [jq][jq-download]
22
36
@@ -109,6 +123,9 @@ spec:
109
123
If the network already exists, offering, gateway and netmask will be ignored.
110
124
Similarly, if the VPC already exists, offering and cidr will be ignored.
111
125
126
+ If you want to use an existing network inside a VPC, you can specify the flavor as `with-existing-vpc-network` while
127
+ generating the cluster configuration file and set the `CLOUDSTACK_VPC_NAME` environment variable to the name of the VPC.
128
+
112
129
#### CloudStack Endpoint Credentials Secret (*optional for provided templates when used with provided getting-started process*)
113
130
114
131
A reference to a Kubernetes Secret containing a YAML object containing credentials for accessing a particular CloudStack
0 commit comments