Bring your own cluster
-
Import/Create cluster
- Using argument
- Using File
initz import cluster --name <cluster-name> --mode <cluster-mode> --provider <provider> --url <cluster-url>
Flags
--name
- Indicates the name of the cluster.
- required
- Shorthand :
n
--mode
- Possible values :
prod/non-prod
- Optional
--provider
- Indicates the name of the service provider
- Possible value :
AWS/Azure/CIVO/GCP
- required
--url
- required
initz import cluster -f <cluster.json/cluster.yaml>
Example template :
- JSON
- YAML
cluster.json{
"name": "example",
"cluster_url": "https://www.example.com",
"provider": "AWS",
"mode": "prod"
}cluster.yamlname: example
cluster_url: https://www.example.com
provider: AWS
mode: prodYou can either use the configuration provided in the file above to import the cluster or generate your own example configuration to do so.
Generate Configuration :
- JSON
- YAML
cluster.jsoninitz import cluster --name <cluster-name> --mode <cluster-mode> --provider <provider> --url <cluster-url> -t json
cluster.yamlinitz import cluster --name <cluster-name> --mode <cluster-mode> --provider <provider> --url <cluster-url> -t yaml
note- While importing the cluster, you will have the option to download the cluster configuration. After downloading, you will receive two files: one named crdtemplate.yaml and the second named deployment configuration file (your_cluster_name.yaml). Download the configuration and apply it to your cluster.
- After applying the configuration file to your cluster, validate it.
-
Download cluster-config
Use command :
initz download cluster-config --name <cluster-name>
-
Delete cluster
Use command :
initz delete cluster --name <cluster-name>
-
How to get list of clusters
Use command :
initz get cluster
In order to get information about specific cluster, Use command :
initz get cluster <cluster-name>
-
Check cluster name
To check cluster name is available or not, use command :
initz check cluster --name <cluster-name>