-
Notifications
You must be signed in to change notification settings - Fork 3
Creates a Kubernetes cluster in Magalu Cloud
github-actions[bot] edited this page Jul 26, 2024
·
1 revision
Usage:
./mgc kubernetes cluster create [flags]
- Examples:
- ./mgc kubernetes cluster create --allowed-cidrs='["192.168.1.0/24","10.0.0.0/16"]' --description="This is an example cluster." --enabled-bastion=false --enabled-server-group=false --name="cluster-example" --node-pools='[{"auto_scale":{"max_replicas":5,"min_replicas":2},"flavor":"cloud-k8s.gp1.small","name":"nodepool-example","replicas":3,"tags":["tag-value1"],"taints":[{"effect":"NoSchedule","key":"example-key","value":"valor1"}]}]' --param.version="v1.30.2" --zone="br-region-zone"
- Flags:
- --allowed-cidrs array(string) List of allowed CIDR blocks for API server access.
- --cli.list-links enum[=table] List all available links for this command (one of "json", "table" or "yaml")
- --description string A brief description of the Kubernetes cluster.
- --enabled-bastion Enables the use of a bastion host for secure access to the cluster.
- (required)
- --enabled-server-group Enables the use of a server group with anti-affinity policy during the creation of the cluster and its node pools.
- (default true)
- -h, --help help for create
- --name string Kubernetes cluster name. The name is primarily intended for idempotence, and must be unique within a namespace. The name cannot be changed.
- The name must follow the following rules:
-
- must contain a maximum of 63 characters
-
- must contain only lowercase alphanumeric characters or '-'
-
- must start with an alphabetic character
-
- must end with an alphanumeric character
- (required)
- --node-pools array(object) An array representing a set of nodes within a Kubernetes cluster.
- Use --node-pools=help for more details (required)
- --param.version string The native Kubernetes version of the cluster.
- Please specify the Kubernetes version using the standard "vX.Y.Z" format.
- (default "v1.30.2")
- -v, --version version for create
- --zone string Identifier of the zone where the Kubernetes cluster will be located.
Global Flags:
--cli.show-cli-globals Show all CLI global flags on usage text
--env enum Environment to use (one of "pre-prod" or "prod") (default "prod")
--region enum Region to reach the service (one of "br-mgl1", "br-ne1" or "br-se1") (default "br-se1")
--server-url uri Manually specify the server to use
- auth
- access_token
- clients
- login
- tenant
- The authentication credentials set here will be used as a basis for a variety
- block-storage
- Block Storage API Product Documentation
- snapshots
- create
- delete
- get
- list
- Operations with snapshots for volumes.
- rename
- restore
- volume-attachment
- volumes
- attach
- create
- delete
- detach
- extend
- get
- list
- Operations with volumes, including create, delete, extend, retype, list and other actions.
- rename
- retype
- volume-types
- config
- Configuration values are available to be set so that they persist between
- delete
- get
- get-schema
- list
- set
- container-registry
- credentials
- images
- Magalu Container Registry product API.
- registries
- repositories
- dbaas
- backups
- datastores
- DBaaS API Product.
- engines
- flavors
- instances
- backups
- create
- Database instances management.
- delete
- get
- list
- resize
- restores
- start
- stop
- update
- replicas
- create
- Database replicas management.
- delete
- get
- list
- resize
- start
- stop
- # Magalu Cloud CLI
- http
- do
- HTTP access
- json
- delete
- get
- head
- JSON HTTP access
- options
- patch
- post
- put
- trace
- kubernetes
- APIs related to the Kubernetes product.
- cluster
- create
- delete
- Endpoints related to the creation, listing, deletion, and retrieval of the kubeconfig for a Kubernetes cluster.
- get
- kubeconfig
- list
- flavor
- info
- nodepool
- create
- delete
- Endpoints related to the creation, listing of nodepools and nodes, updating, and deletion of nodepools for a Kubernetes cluster.
- get
- list
- nodes
- update
- version
- network
- APIs referentes ao produto de VPC
- healthcheck
- ports
- attach
- create
- create-default-vpc
- delete
- delete-all
- detach
- get
- list
- security-group-attachment
- VPC Port
- public_ips
- attach
- create
- delete
- detach
- get
- list
- port-attachment
- VPC Public IPs
- quotas
- rules
- create
- delete
- get
- list
- VPC Rules
- security_groups
- create
- create-default
- delete
- delete-all
- get
- list
- rules
- create
- list
- VPC Security Groups | rules
- VPC Security Groups
- subnets
- subnets
- vpcs-subnets
- VPC Subnets
- vpcs
- create
- create-default
- delete
- delete-all
- get
- list
- ports
- public-ips
- security-groups
- Virtual Private Cloud (VPC)
- worker_public_ips
- object-storage
- api-key
- add
- create
- current
- get
- list
- Manage credentials to use Object Storage
- revoke
- set
- buckets
- acl
- Bucket operations for Object Storage API
- create
- delete
- get
- list
- public-url
- versioning
- Create and manage Buckets and Objects via the Object Storage API
- objects
- acl
- copy
- copy-all
- delete
- delete-all
- download
- download-all
- head
- list
- move
- move-dir
- Object operations for Object Storage API
- presign
- public-url
- sync
- upload
- upload-dir
- versions
- api-key
- profile
- virtual-machine
- images
- instances
- create
- delete
- get
- list
- network-interface
- Operations with instances, including create, delete, start, stop, reboot and other actions.
- reboot
- rename
- retype
- start
- stop
- suspend
- machine-types
- snapshots
- create
- delete
- get
- list
- Operations with snapshots for instances.
- rename
- restore
- Virtual Machine Api Product