This message was deleted.
# rke2
a
This message was deleted.
c
you can still set that flag, and it does still enable aws-specific behavior for setting the node hostname
but as far as deploying the cloud provider, just deploy the chart from the upstream project as suggested by the Rancher docs
https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-clusters-in-rancher-setup/set-up-cloud-providers/amazon#using-the-out-of-tree-aws-cloud-provider
Copy code
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
      kind: HelmChart
      metadata:
        name: aws-cloud-controller-manager
        namespace: kube-system
      spec:
        chart: aws-cloud-controller-manager
        repo: <https://kubernetes.github.io/cloud-provider-aws>
        targetNamespace: kube-system
        bootstrap: true
        valuesContent: |-
          hostNetworking: true
          nodeSelector:
            <http://node-role.kubernetes.io/control-plane|node-role.kubernetes.io/control-plane>: "true"
          args:
            - --configure-cloud-routes=false
            - --v=5
            - --cloud-provider=aws
n
Ok, so no need for the overrides and all that? Also, I saw that
node-name-from-cloud-provider-metadata
was now available, is that the "non-deprecated" way of getting that behavior? Like Im wondering if this is the "modern" config
Copy code
node-name-from-cloud-provider-metadata: true
cloud-provider-name: external
Thanks for the help btw
c
either one will give the same effect. that’d be the better way to do it, but the old way will still work too. At some point we will probably remove it but it’s not a priority
👍 1
is this for a standalone rke2 cluster, or rancher-provisioned?
n
Rancher-provisioned RKE2 (using the Amazon EC2 node driver)
For context I've been tasked with automating the deployment of our RKE2 clusters (and enabling IaC for them with the rancher2 terraform module). One of the things we need is the aws cloud provider.
I have to get off work, but I'll read your messages tomorrow morning. Thanks for all the help, I really appreciate it.