terraform-kubernetes-installer
terraform-kubernetes-installer copied to clipboard
Metadata size limit of 32000 bytes being hit.
Terraform Version
OCI Provider Version
Terraform Installer for Kubernetes Version
Input Variables
Description of issue:
This is my first time trying to setup the terraform k8s installer. I managed to get around the issue reported elsewhere of the null OCI images references/lookup. Now the error I get is about reaching the metadata size limit of 32000 bytes.
Error message: Error: Error applying plan:
3 error(s) occurred:
-
module.instances-k8smaster-ad3.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:InvalidParameter. Metadata size is 32340 bytes and cannot be larger than 32000 bytes. http status code: 400
-
module.instances-k8smaster-ad1.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:InvalidParameter. Metadata size is 32340 bytes and cannot be larger than 32000 bytes. http status code: 400
-
module.instances-k8smaster-ad2.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:InvalidParameter. Metadata size is 32340 bytes and cannot be larger than 32000 bytes. http status code: 400
I'm not sure where I would either be able to decrease the metadata or increase the limit to 33000 bytes.
Hi can you post your input variables? (The non sensitive bits)
Sure. It's pretty vanilla from the example file though.
region = "us-ashburn-1" cloud_controller_user_ocid = "ocid1.tenancy.oc1..aaaaaaaafzkf23c5nxd47p7kmwkaevnpghc5umfdmrrizgtec3kbocaz5srq"
etcdShape = "VM.Standard1.2" k8sMasterShape = "VM.Standard1.8" k8sWorkerShape = "VM.Standard1.8"
etcdAd1Count = "1" etcdAd2Count = "1" etcdAd3Count = "1"
k8sMasterAd1Count = "1" k8sMasterAd2Count = "1" k8sMasterAd3Count = "1"
k8sWorkerAd1Count = "1" k8sWorkerAd2Count = "1" k8sWorkerAd3Count = "1"
etcdLBShape = "100Mbps" k8sMasterLBShape = "100Mbps"
etcd_ssh_ingress = "10.0.0.0/16" etcd_ssh_ingress = "0.0.0.0/0" etcd_cluster_ingress = "10.0.0.0/16" master_ssh_ingress = "0.0.0.0/0" worker_ssh_ingress = "0.0.0.0/0" master_https_ingress = "0.0.0.0/0" worker_nodeport_ingress = "0.0.0.0/0" worker_nodeport_ingress = "10.0.0.0/16"
control_plane_subnet_access = "public" k8s_master_lb_access = "public" natInstanceShape = "VM.Standard1.2" nat_instance_ad1_enabled = "true" nat_instance_ad2_enabled = "false" nat_instance_ad3_enabled = "true" nat_ssh_ingress = "0.0.0.0/0" public_subnet_http_ingress = "0.0.0.0/0" public_subnet_https_ingress = "0.0.0.0/0"
worker_iscsi_volume_create = true worker_iscsi_volume_size = 100
etcd_iscsi_volume_create = true etcd_iscsi_volume_size = 50
odd. I've refreshed my copy of the project, saw a bunch of changed files. And now I'm getting an error that VM.Standard1.8 is not found or not authorized:
Error: Error applying plan:
3 error(s) occurred:
-
module.instances-k8smaster-ad2.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:NotAuthorizedOrNotFound. shape VM.Standard1.8 not found. http status code: 404
-
module.instances-k8smaster-ad1.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:NotAuthorizedOrNotFound. shape VM.Standard1.8 not found. http status code: 404
-
module.instances-k8smaster-ad3.oci_core_instance.TFInstanceK8sMaster: 1 error(s) occurred:
-
oci_core_instance.TFInstanceK8sMaster: Service error:NotAuthorizedOrNotFound. shape VM.Standard1.8 not found. http status code: 404
I notched the shape down to standard1.2 and viola, it worked!
Now scripts/cluster-check.sh is failing which is strange, but probably because the authorized public key is somehow not showing up on the nodes.
I'm seeing the same metadata size issue. I'm trying to stuff a 90k python script into cloud-init and we don't seem to allow that:
Error: Error applying plan:
1 error(s) occurred:
* oci_core_instance.utility: 1 error(s) occurred:
* oci_core_instance.utility: Service error:InvalidParameter. Metadata size is 174986 bytes and cannot be larger than 32000 bytes. http status code: 400. Opc request id: d3aeda8c3dd723c3a37994c57465db7e/038961F6E91429A60AF47B0BE9DD76AF/4EA48E454B9ACE92F7ABBB81F0A27A4A
What would it take to bump this limit?