Is your feature request related to a problem? Please describe.
If you want to customize cluster_agent_deployment_customization in rancher2_cluster resource, you can use these 3 sections:
append_tolerations
override_affinity
override_resource_requirements
But, when you apply needed changes, you can't change anything related to rancher-webhook functionality which is automatically installed by this process with default values. This provides strange feeling that you can change fleet-agent and cattle-cluster-agent, but there is not way how to change anything related to rancher-webhook.
An example with conditions:
I want to register existed EKS cluster (a.k.a import it) and place registration process functionality that will be created by rancher2_cluster resource to specific NG with taints. And I also don't have any untainted or unlabeled nodes in the cluster. The TF code will be:
So, to make sure, that everything is finished appropriately, I need to patch manually tolerations and nodeSelector. I guess this shouldn't be done in this way and whole process should be finished through rancher2_cluster functionality.
Describe the solution you'd like
To add to the cluster_agent_deployment_customization:
Currently, I don't find any information and any good automated way how to do this and don't create wheel of hell in TF code. Please, mention to me, if you know something more or I am wrong about registration process through rancher2_cluster.
Is your feature request related to a problem? Please describe.
If you want to customize
cluster_agent_deployment_customization
inrancher2_cluster
resource, you can use these 3 sections:append_tolerations
override_affinity
override_resource_requirements
But, when you apply needed changes, you can't change anything related to
rancher-webhook
functionality which is automatically installed by this process with default values. This provides strange feeling that you can changefleet-agent
andcattle-cluster-agent
, but there is not way how to change anything related torancher-webhook
.An example with conditions: I want to register existed EKS cluster (a.k.a import it) and place registration process functionality that will be created by
rancher2_cluster
resource to specific NG with taints. And I also don't have any untainted or unlabeled nodes in the cluster. The TF code will be:I will see:
So, to make sure, that everything is finished appropriately, I need to patch manually tolerations and nodeSelector. I guess this shouldn't be done in this way and whole process should be finished through
rancher2_cluster
functionality.Describe the solution you'd like
To add to the
cluster_agent_deployment_customization
:Describe alternatives you've considered
Currently, I don't find any information and any good automated way how to do this and don't create
wheel of hell
in TF code. Please, mention to me, if you know something more or I am wrong about registration process throughrancher2_cluster
.