也可访问 中文
A Terraform module for deploying OpenShift on AliCloud ECS.
These types of resources are supported:
Terraform ~> v0.12.5
export ALICLOUD_ACCESS_KEY=xxx
export ALICLOUD_SECRET_KEY=xxx
module "openshift" {
source = "../../modules"
}
variable "key_name" {
default = "poc"
}
variable "public_key" {
default = "ssh-rsa xxx"
}
terraform init
terraform apply
You will see output as below:
Apply complete! Resources: 11 added, 0 changed, 0 destroyed.
Outputs:
OpenShift = https://x.x.x.x:8443/console
Password = 123456
Username = admin
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | The region ID used to launch this module resources. If not set, it will be sourced from followed by ALICLOUD_REGION environment variable and profile | string | "" | yes |
instance_name | Name used on all instances as prefix. Like TF-ECS-Instance-1, TF-ECS-Instance-2. | string | "TF-ECS-Instance" | yes |
number_format | The number format used to output. | string | %02d | yes |
ecs_instance_count | Count of ECS instances | int | 1 | yes |
availability_zone | The Zone to start the instance in. It is ignored and will be computed when set vswitch_id. | string | "" | yes |
internet_max_bandwidth_out | Maximum outgoing bandwidth to the public network | int | 1 | no |
key_name | The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid. | string | "" | yes |
public_key | Public key text | string | "" | yes |
cidr_block_vpc | VPC CIDR block | string | "10.0.0.0/18" | yes |
cidr_block_vswitch | VSwitch CIDR block | string | "10.0.0.0/20" | yes |
disk_category | Filter the results by a specific disk category. Can be either cloud , cloud_efficiency , cloud_ssd , ephemeral_ssd . |
string | "cloud_efficiency" | no |
disk_size | The system disk size used to launch one or more ecs instances. | string | "40" | no |
disk_count | The count of the system disks | int | 1 | yes |
Name | Description |
---|---|
OpenShift | OpenShift URL |
Username | The user name to login in OpenShift |
Password | The password to login in OpenShift |
Module managed by zzxwill with code source in terraform-alicloud-openshift.
MIT Licensed. See LICENSE for full details.