I use the following terraform code with the latest version 0.13.0 in a resource "rancher2_cluster_template" "template".template_revisions.cluster_config.rke_config block:
I checked that the cluster references the correct cluster_template and cluster_template_revision ids.
The upper case R in Resources in the cluster api object, instead of the lower case r in the cluster template object seems suspicious
And the cluster fails to start and the Rancher UI displays the following error message:
[controlPlane] Failed to bring up Control Plane: [Failed to verify healthcheck: Failed to check https://localhost:6443/healthz for service [kube-apiserver] on host [xxx.xxx.xxx.xxx]: Get "https://localhost:6443/healthz": dial tcp 127.0.0.1:6443: connect: connection refused, log: Error: error while parsing encryption provider configuration file "/etc/kubernetes/ssl/encryption.yaml": error while parsing file: resources: Required value: at least one resources is required]
Indeed when sshing into one of the control plane nodes, I see that:
root@controlplane1:~# more /etc/kubernetes/ssl/encryption.yaml
apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration
resources: []
Hi there,
I use the following terraform code with the latest version
0.13.0
in aresource "rancher2_cluster_template" "template"
.template_revisions
.cluster_config
.rke_config
block:When looking at the API object for the cluster template, the
secretsEncryptionConfig
looks fine:However the cluster itself seem to have lost the
resources
value:I checked that the cluster references the correct
cluster_template
andcluster_template_revision
ids.The upper case
R
inResources
in the cluster api object, instead of the lower caser
in the cluster template object seems suspiciousAnd the cluster fails to start and the Rancher UI displays the following error message:
Indeed when sshing into one of the control plane nodes, I see that: