* feat: distribution is a dict and nodes and cluster are top level Signed-off-by: Devin Buhl <devin@buhl.casa> * chore: housekeeping Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
26 lines
710 B
YAML
26 lines
710 B
YAML
---
|
|
apiVersion: autopilot.k0sproject.io/v1beta2
|
|
kind: Plan
|
|
metadata:
|
|
name: autopilot
|
|
spec:
|
|
id: not-used
|
|
timestamp: not-used
|
|
commands:
|
|
- k0supdate:
|
|
version: "${KUBE_VERSION}"
|
|
platforms:
|
|
linux-amd64:
|
|
url: "https://get.k0sproject.io/${KUBE_VERSION}/k0s-${KUBE_VERSION}-amd64"
|
|
linux-arm64:
|
|
url: "https://get.k0sproject.io/${KUBE_VERSION}/k0s-${KUBE_VERSION}-arm64"
|
|
targets:
|
|
controllers:
|
|
discovery:
|
|
selector: {}
|
|
{% if nodes.inventory | selectattr('controller', 'equalto', False) | list | length %}
|
|
workers:
|
|
discovery:
|
|
selector: {}
|
|
{% endif %}
|