techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

Error: TASK [k3s/master : Copy vip manifest to first master] #162

Closed gcraenen closed 1 year ago

gcraenen commented 1 year ago

Scripts run without error and k8s cluster is provisioned, but:

Current Behavior

TASK [k3s/master : Copy vip manifest to first master] ***** Saturday 12 November 2022 15:28:54 +0000 (0:00:00.848) 0:00:27.347 * [WARNING]: an unexpected error occurred during Jinja2 environment setup: unable to locate collection ansible.utils skipping: [k8s-master02.calmus.one] fatal: [k8s-master01.calmus.one]: FAILED! => changed=false msg: |- AnsibleError: template error while templating string: unable to locate collection ansible.utils. String: apiVersion: apps/v1 kind: DaemonSet metadata: name: kube-vip-ds namespace: kube-system spec: selector: matchLabels: name: kube-vip-ds template: metadata: labels: name: kube-vip-ds spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms:

gcraenen commented 1 year ago

Found it. Galaxy install was not ok and had to be reinstalled.