...
Go to
<the location where you extracted the gcp.tar.gz file>/gcp/terraform
and copy theterraform.tfvars.example
toterraform.tfvars
.Edit the
terraform.tfvars
file.Specify the desired cluster
name
, GCP OCIregion
andkubernetes_version prefix
(please refer to the Compatibility Matrix (4.1) to find out which Kubernetes versions that are compatible with this release of Usage Engine Private Edition). Also specify your GCPproject id
OCItenancy_ocid, user_ocid, fingerprint, compartment_ocid and private_key_path
(which can be found on the GCP dashboardOCI dashboard’s Profile page), as well as the desired number of nodes per region cluster (gkeoke_num_nodes
).If you will be running with a database other than Derby also specify
db_password
,db_version
anddb_allocated_storageusername
.
terraform.tfvars | Where to get the value from? |
---|---|
| In the GCP management console, this is the Project ID that is listed on |
| In the GCP management console, this is the Project Number that is listed on |
| The region in which you will install your cluster, refer to https://cloud.google.com/compute/docs/regions-zones for possible values. Or use command |
| A name for your cluster. Cluster names must start with a lowercase letter followed by up to 39 lowercase letters, numbers or hyphens. They can't end with a hyphen. The cluster name must be unique in the project. |
| Your existing domain name. In the GCP management console, this is the DNS name that is listed on page |
| Prefix version for kubernetes (default “ |
| Number of cluster nodes per zone. |
| Choose a secure password for the system database administrator. Minimum 10 characters. |
| Database version, check https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance#database_version for possible values. Default is |
| Allocated amount of storage for the database. Default is “10” (10GB). |
| To find out available zones of your region, use command Replace |
...
You need to set
auto_create_ns_record = false
to disable subdomain NS record auto creation in the parent domain.Perform terraform apply.
After terraform apply is finished, copy the name servers value from terraform output and manually add them to parent domain as NS record. If you are not using Cloud OCI DNS as the parent domain, please refer to your Domain Registrar documentation on how to add NS record.
Authenticate your computer with GCP
...
Run the following commands
Code Block |
---|
terraform init terraform plan terraform apply |
...
Info |
---|
Make sure to save the output from terraform above. Reason being that it is used as input throughout the remainder of this installation guide. |
Info |
The persistent volume and persistent volume claim yaml file being generated at the end of the terraform apply. This yaml file is located at manifests/filestore_persistence.yaml. This yaml file shall be executed at the later section. Please note that persistent volume setup is an optional step. Ignore this yaml file if you are not intended to have persistent file storage. |
A fully functional Kubernetes cluster has now been set up successfully.
...
You can check the status of the cluster, db and the other resources in the GCP OCI dashboard.
Setup Additional Infrastructure Resources on AWS
...