Skip to content

[Enhancement]: Improve wait condition for k3s #1547

@pablochacin

Description

@pablochacin

Proposal

Presently k3s waits for the message "k3s is up and running"" to validate that the cluster is ready for use. However, this check is insufficient, as the API Server may still be synchronizing the database and therefore unable to respond to requests.

This may cause unexpected behaviors. For instance, as discussed in this thread, trying to create a pod may fail with the error looking up service account default/default: serviceaccount "default" not found.

The proposed solution is to wait for a message that contains the text Node controller sync successful. This is the way the java implementation works. Also, a quick PoC implemented using a LogAcceptor validates that waiting for this condition is more robust and prevents the error described above.

However, in order to implement this validation, the ForLog strategy must be extended as proposed in #1541 to allow validating regular expressions, instead of just fixed text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions