-
Notifications
You must be signed in to change notification settings - Fork 243
Description
I setup a public API cluster with no Bastion or Operator, I am trying to Deploy Cilium which requires Flannel and Kube-Proxy addon removal, and it fails on -
Error: remote-exec provisioner error
│
│ with module.cluster-addons[0].null_resource.remove_addons["KubeProxy"],
│ on modules/cluster-addons/delete_addons.tf line 30, in resource "null_resource" "remove_addons":
│ 30: provisioner "remote-exec" {
│
│ host for provisioner cannot be empty
The same happens when trying to install Cilium with the exact same error.
After researching the issue, it seems the module cluster-addons is dependent on a connection to the cluster API which in turn is only configured in the module to be accessed via Bastion or Operator -
connection {
bastion_host = var.bastion_host
bastion_user = var.bastion_user
bastion_private_key = var.ssh_private_key
host = var.operator_host
user = var.operator_user
private_key = var.ssh_private_key
timeout = "40m"
type = "ssh"
}
I would like the module to utilize an OKE Public API endpoint for deleting/deploying add-ons and not be limited to accessing the API solely via Bastion or Operator.
Thank you.