Add K8s 1.31 support.
Part of Investigate Kubernetes 1.31 support (gitlab-org/gitlab#501389 - closed).
Ref: https://github.com/k3s-io/k3s/releases