AKS-Edge
AKS-Edge copied to clipboard
[Question] Failed to determine k3s control plane endpoint IP or port for Linux node type
Describe scenario
Hi, I'm trying to deploy AKS EE in my laptop( Windows 10 Enterprise 19045.3803).
I use New-AksEdgeDeployment -JsonConfigFilePath .\aksedge-config.json
command in PowerShell 5.1 in the offline way.
Everything seems to be going well, but when it comes to AksEdge - copying Kubeconfig into the host.
step, it throw an exception:
- Warning: Could not determine proper endpoint IP for the node's cluster
- Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5735)
I have posted the installation log and my aksedge-config.json
- Checking host for required features
- Checking the status of 'Microsoft-Hyper-V'
- Checking the status of 'Microsoft-Hyper-V-Management-PowerShell'
- Checking the status of 'Microsoft-Hyper-V-Hypervisor'
- Checking the status of 'OpenSSH.Client*'
- Checking power management settings of the Host
- Checking HNS version of the Host
- Checking OpenSSH version of the Host
- Checking Nested Virtualization of the Host
[01/11/2024 17:57:03] All required host features are installed
[01/11/2024 17:57:03] Attention - Azure Arc properties are specified. These will not be used. The cluster currently needs to be connected in a separate step after deployment via Connect-AksEdgeArc
[01/11/2024 17:57:03] Validating AksEdge network parameters...
[01/11/2024 17:57:03] *** 0 errors found in the deployment configuration.
[01/11/2024 17:57:16] Checking the required certificates for offline installation...
[01/11/2024 17:57:16] Verifying Host Requirements for Linux node(s)
- Verifying host requirements for selected configuration (77.5 GB disk size, 16884 MB memory, 8 CPUs)
[01/11/2024 17:57:16] Verifying Host OS can support requested configuration [01/11/2024 17:57:16] Verifying required storage, RAM and number of cores are available - Drive 'C:' has 213 GB free
- A minimum of 77 GB disk space is required on drive 'C:'
- Host has 43789 MB free memory
- A minimum of 16884 MB memory is required
- Host has 16 CPU cores
- A minimum of 8 CPU cores is required
- Verifying certificate requirements for AKS-EE
- Starting Internet Disabled Deployment
[01/11/2024 17:57:17] AksEdge - deploying a new Linux single machine k3s cluster
[01/11/2024 17:58:27] Creating single machine cluster hcs network - AksEdge - private network carved: Name : ip4PrefixLength Value : 24
Name : LinuxVmIp4Address
Value : 192.168.0.2
Name : ServiceIPRangeStart Value : 192.168.0.4
Name : ip4GatewayAddress Value : 192.168.0.1
Name : ip4Subnet Value : 192.168.0.0
Name : WindowsVmIp4Address Value : 192.168.0.3
Name : ServiceIPRangeEnd Value : 192.168.0.4
[01/11/2024 17:58:28] Deploying AKS Edge Essentials - K3s
[01/11/2024 17:58:28] Step 1: Preparing host for AKS Edge Essentials - K3s
[01/11/2024 17:58:28] Enabling Microsoft Update. This will allow AKS Edge Essentials - K3s to receive updates.
- Microsoft Update is enabled.
[01/11/2024 17:58:28] Checking for virtual switch with name 'aksedgesw-int'
- The virtual switch 'aksedgesw-int' of type 'Internal' is present
[01/11/2024 17:58:29] Associating wssdagent service with nodectl
[01/11/2024 17:59:03] Creating vnet (name: aksedgesw-int)
- Skipping DNS, not searching for DNS server
[01/11/2024 17:59:03] Deploying AKS Edge Essentials - K3s
[01/11/2024 17:59:03] Step 1: Skipped host preparation
[01/11/2024 17:59:03] Step 2: Verifying AKS Edge Essentials - K3s installation
[01/11/2024 17:59:03] Verifying installation
- Verifying whether Hyper-V is enabled and functional
- Hyper-V core services are active
- Verifying expected Windows host binaries
- Verifying expected Linux VM image
- Testing for ssh key
- Testing for wssdagent service
- Testing if wssdagent is running
- Testing if container resource is provisioned
- Testing if vnet resource 'aksedgesw-int' is provisioned
[01/11/2024 17:59:18] Step 3: Runtime configuration complete. Creating virtual machine
[01/11/2024 17:59:18] Extracting Linux VHD
[01/11/2024 17:59:24] Setting dynamically expanding virtual hard disk maximum size to 90.4 GB
- Creating storage vhd (file: AzureIoTEdgeForLinux-v1-ledge)
- Creating vnic (name: cnsl71t97g3-ledgeInterface)
- Instantiating virtual machine (name: cnsl71t97g3-ledge)
- Virtual machine successfuly instantiated
[01/11/2024 17:59:52] Virtual machine created successfully.
[01/11/2024 18:00:04] Successfully created virtual machine
[01/11/2024 18:00:04] Virtual machine hostname: cnsl71t97g3-ledge
[01/11/2024 18:00:04] Testing SSH connection...
[01/11/2024 18:00:59] ...successfully connected to the Linux VM
[01/11/2024 18:00:59] Querying IP and MAC addresses from virtual machine (cnsl71t97g3-ledge)
- Virtual machine MAC: 00:15:5d:7b:1e:ec
- Virtual machine IP : 192.168.0.2 retrieved directly from virtual machine
- Please check your DNS configuration to ensure Internet connectivity. Refer to https://aka.ms/aks-edge/dns for more details.
[01/11/2024 18:01:00] Deployment successful
[01/11/2024 18:01:00] Initializing kubernetes runtime in Linux node.
- Waiting for Kubernetes node (cnsl71t97g3-ledge) to reach condition Ready, time remaining = 300 seconds
- Kubernetes node (cnsl71t97g3-ledge) reached condition Ready
**[01/11/2024 18:01:42] AksEdge - copying Kubeconfig into the host.
- Warning: Could not determine proper endpoint IP for the node's cluster
[01/11/2024 18:01:43] Exception Caught!!!
- Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5735)
[01/11/2024 18:01:43] Exception Caught!!!
- Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5735)**
aksedge-config.json { "Arc": { "ClientId": null, "ClientSecret": null, "ClusterName": null, "Location": null, "ResourceGroupName": null, "SubscriptionId": null, "TenantId": null }, "DeploymentType": "SingleMachineCluster", "Init": { "ServiceIPRangeSize": 1 }, "Machines": [ { "LinuxNode": { "CpuCount": 8, "DataSizeInGB": 68, "MemoryInMB": 16384, "SecondaryNetworks": [ { "Ip4Address": null, "Ip4GatewayAddress": null, "Ip4PrefixLength": null, "VMSwitchName": null } ], "TimeoutSeconds": 300, "TpmPassthrough": false } } ], "Network": { "InternetDisabled": true, "Ip4AddressPrefix": "192.168.0.0/24", "NetworkPlugin": "flannel", "Proxy": { "Http": null, "Https": null, "No": "localhost,127.0.0.0/8,192.168.0.0/16,172.17.0.0/16,10.42.0.0/16,10.43.0.0/16,10.96.0.0/12,10.244.0.0/16,.svc" }, "SkipAddressFreeCheck": true, "SkipDnsCheck": false }, "SchemaVersion": "1.9", "User": { "AcceptEula": true, "AcceptOptionalTelemetry": true, "VolumeLicense": { "EnrollmentID": null, "PartNumber": null } }, "Version": "1.0" }
Any solution on this one?
I got the same issue which failed to copy the Kubeconfig, the cmd Get-AksEdgeKubeConfig
returns the same error
[05/15/2024 09:29:30] AksEdge - copying Kubeconfig into the host.
- Warning: Could not determine proper endpoint IP for the node's cluster
[05/15/2024 09:29:32] Exception Caught!!!
- Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5829)
[05/15/2024 09:29:32] Exception Caught!!!
- Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5829)
Any solution on this one? I got the same issue which failed to copy the Kubeconfig, the cmd
Get-AksEdgeKubeConfig
returns the same error[05/15/2024 09:29:30] AksEdge - copying Kubeconfig into the host. - Warning: Could not determine proper endpoint IP for the node's cluster [05/15/2024 09:29:32] Exception Caught!!! - Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5829) [05/15/2024 09:29:32] Exception Caught!!! - Failed to determine k3s control plane endpoint IP or port for Linux node type(s) (AksEdge.psm1: line 5829)
Seems like this issue only exists in k3s, when I switched to use k8s, I can config sucessfully.
Is there any update to this? I am getting same error it happened after rebooting machine.
Quick update - Actively working on this, sincere apologies for the delay.
I was able to find a fix/workaround.