Skip to content

Worker nodes (ubuntu 24.04) on DigitalOcean inaccessible #653

Open

Description

@kradebahs

We ran into issues with MachineDeployments on DigitalOcean using KubeOne 1.14.3. The IP configuration of the Ubuntu 24.04 worker nodes gets removed and the nodes become inaccessible.

To work around the issue, we modified the Ubuntu OSP (similar to the changes made for Hetzner):

  1. Back up the /etc/netplan/50-cloud-init.yaml file.
  2. Remove the rm /etc/netplan/50-cloud-init.yaml line.
  3. Restore the backed-up netplan config later in the script.

Below is the diff:

17a18,23
> {{- /* DigitalOcean: keep a copy of the netplan config generated by the first cloud-init run so it can be restored after the second run. */}}
> {{- if eq .CloudProviderName "digitalocean" }}
> # Backup default netplan config
> cp /etc/netplan/50-cloud-init.yaml /etc/netplan-50-cloud-init.yaml.bak
> {{- end }}
>
30d35
< rm /etc/netplan/50-cloud-init.yaml
45a51,53
> # Restore default netplan config
> cp /etc/netplan-50-cloud-init.yaml.bak /etc/netplan/50-cloud-init.yaml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions