v1.6.0
-
Manually create a non-expiring
ServiceAccount
tokenSecret
to support Kubernetes v1.24. Relevant release notes:The
LegacyServiceAccountTokenNoAutoGeneration
feature gate is beta, and enabled by default. When enabled, Secret API objects containing service account tokens are no longer auto-generated for everyServiceAccount
. Use the TokenRequest API to acquire service account tokens, or if a non-expiring token is required, create a Secret API object for the token controller to populate with a service account token by following this guide.Each service account API key will be regenerated and will require you to rotate the
k8s_auth_api_key
Ansible variable(s). -
Switch to
kubernetes.core
for Ansible 6.x+ support and use fully qualified collection names (FQCNs) to be explicit. Thecommunity.kubernetes
collection was renamed tokubernetes.core
in v2.0.0 of the kubernetes.core collection. Since Ansible v3.0.0, both thekubernetes.core
andcommunity.kubernetes
namespaced collections were included for convenience. Ansible v6.0.0 removed thecommunity.kubernetes
convenience package.