silly-jordan-81965
05/13/2022, 7:41 AMrke_config {
cloud_provider {
name = "openstack"
openstack_cloud_provider {
global {
auth_url = var.openstack_auth_url
username = var.openstack_username
password = var.openstack_password
tenant_id = var.openstack_tenant_id
}
}
}
machine_global_config = <<EOF
Anyone that can point me in the right direction?
silly-jordan-81965
05/18/2022, 11:15 AMrke_config {
machine_selector_config {
config = {
cloud-provider-name = "external"
cloud-provider-config = file("occm/values.yaml")
}
}
And in the value file:
cloud_provider:
name: openstack
openstackCloudProvider:
global:
auth-url: <https://openstack.xxxxxx.io:5000/v3>
tenant-id: someid
domain-id: default
username: xxxxxxxx
password: xxxxxxx
region: region-name
However when we use this we see that the cluster node comes up but gets tainted with <http://node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule|node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule>
Which gives the effect that neither cluster-agent nor coreDNS is up and running.
What are we missing here?silly-jordan-81965
06/03/2022, 8:53 AMmachine_global_config = <<EOF
cni: "cilium"
disable:
- rke2-ingress-nginx
resolv-conf: "/run/systemd/resolve/resolv.conf"
EOF
chart_values = <<EOF
rke2-cilium:
k8sServiceHost: 127.0.0.1
k8sServicePort: 6443
kubeProxyReplacement: strict
EOF
I dont see the values reflected in the configmap cilium-config and the cluster doesnt finish provisioning. What am i missing?
Should the chart_values be added into the machine_selector_config instead?boundless-dog-9864
06/06/2022, 4:36 PMswift-byte-32159
06/14/2022, 2:54 PMlabels
field that should be for node labels but for some reason the provider logic transforms a map of labels
into machineDeploymentLabels
. I think think this might be the function that's responsible: https://github.com/rancher/terraform-provider-rancher2/blob/master/rancher2/structure_cluster_v2_rke_config_machine_pool.go#L66
2. I'm trying to pass in a map of kubelet-arg
values into cluster_v2 machine_selector_configs but it's also undocumented in the provider docs. I'm forced to pass in an HCL map to the config
key but the kubelet-arg
subkey should be an array while the provider expects only expects a string. I've tried using properly formatted HCL and even hacking it with multiline strings or formatted single-line yaml arrays but no luck so far.
3. The two last issues make me wonder why I'm passing in rke_config values as HCL maps in the first place when Rancher/RKE2 expects them as YAML? I think we can maintain closer parity between the Rancher/RKE2 configs and the Terraform plans if we just pass in those configs as YAML while also making the codebase more maintainable. Thoughts?silly-jordan-81965
06/17/2022, 8:24 AM--kube-controller-manager-arg value
--kube-scheduler-arg value
ambitious-island-4760
06/24/2022, 8:55 AMrancher2_cluster
resource, we're setting up AKS clusters with the aks_config_v2
. There we have the node_pools
section with which we can successfully specify and rollout one node pool. My question is though, how can we setup multiple node pools? Cannot figure it out so far 😐ambitious-island-4760
06/27/2022, 12:57 PMMC_abc_xyz
resource group where it puts all its node pool resources.
• Within this resource group, it creates a private DNS zone because we're dealing with private AKS clusters
• Within this private DNS zone we need to manually create a Virtual network link
to another subscription and VNet of ours where our DNS forwarder lives
• When we do not create this manually while the pipeline is running, resolving goes bad and creation of the private cluster fails
Needless to say we would like to not do the manual step 🙂 Any tips?kind-air-74358
07/21/2022, 7:55 AMterraform-provider-rancher2
using the resource rancher2_cluster_v2
. How can I set the networking capabilities of the cluster, like Cluster CIDR
, Service CIDR
and Container Network
? N.b. I want to create an RKE2 cluster in this case.acceptable-evening-17718
07/22/2022, 2:12 PMjolly-area-75887
08/04/2022, 5:59 AMaks_config_v2
with kubenet plugin ans use existing VNET, SUBNET. And rancher is till trying to create a new vnet even though I have mentioned to use existing network.
However this behaviour works when I use aks_config
jolly-area-75887
08/04/2022, 6:00 AMaks_config
is, it creates VM set and not VMSSambitious-island-4760
08/04/2022, 6:21 AMjolly-area-75887
08/04/2022, 7:00 AMambitious-island-4760
08/04/2022, 7:57 AMjolly-area-75887
08/04/2022, 8:48 AMjolly-area-75887
08/04/2022, 8:51 AMambitious-island-4760
08/04/2022, 9:57 AMjolly-area-75887
08/05/2022, 10:29 AMambitious-island-4760
08/05/2022, 11:26 AMjolly-area-75887
08/05/2022, 2:55 PMfinalizers
many-evening-49066
08/08/2022, 9:11 AMhelm_release.rancher_server: Creating...
╷
│ Error: could not download chart: Chart.yaml file is missing
│
│ with helm_release.rancher_server,
│ on <http://helm.tf|helm.tf> line 32, in resource "helm_release" "rancher_server":
│ 32: resource "helm_release" "rancher_server" {
│
╵
any idea how to debug this?ambitious-island-4760
08/17/2022, 6:52 AMambitious-island-4760
08/17/2022, 6:53 AMmany-church-13850
08/23/2022, 4:34 AMmany-church-13850
08/23/2022, 4:37 AMjolly-area-75887
08/23/2022, 8:22 AMambitious-island-4760
08/23/2022, 8:30 AMmany-church-13850
08/23/2022, 6:44 PMsilly-jordan-81965
08/26/2022, 11:09 AM