Hasura CLI: hasura platform:cluster add¶
Add an existing hasura cluster
Synopsis¶
Add an existing cluster with Hasura installed to current project
hasura platform:cluster add [cluster-name] -c [cluster-alias] [flags]
Examples¶
# Add a hasura cluster called 'caddy89' to the project with an alias 'production':
$ hasura cluster add caddy89 -c production
# Add cluster named 'caddy89' to current project, with alias 'staging'
# over-write any existing cluster with same name
$ hasura cluster add caddy89 -c staging --overwrite
# Add a cluster defined in a file called 'cluster.yaml' to this project
$ hasura cluster add --file=cluster.yaml
# Add a cluster using it's kubecontext
$ hasura cluster add <cluster-name> -c <cluster-alias> --kube-context <kube-context>
Options¶
-c, --cluster string alias the cluster to a more relevant name. Cluster will be added to the project with this name and can be further referred to using the alias with -c flag
--config-map string k8s config map where hasura config metadata is present (default "controller-conf")
--config-namespace string namespace where hasura config metadata is present (default "hasura")
-f, --file string path to cluster data file
-h, --help help for add
--kube-context string kube-context to connect to the cluster
--overwrite skip confirmation and over-write if a cluster with same alias already exist
Options inherited from parent commands¶
--project string hasura project directory where the commands should be executed. (default: current directory)
Was this page helpful?