mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-25 06:24:19 +00:00
Part of: https://github.com/kairos-io/kairos/issues/3100 fixing the manual setup case. A config similar to this should now work: master: ```yaml hostname: metal-{{ trunc 4 .MachineID }} users: - name: kairos # Change to your own user passwd: kairos # Change to your own password groups: - admin # This user needs to be part of the admin group k3s: enabled: true embedded_registry: true stages: boot: - name: "Add registries configuration for k3s/spegel" files: - path: /etc/rancher/k3s/registries.yaml content: | mirrors: "*": ``` worker: ```yaml #cloud-config hostname: metal-{{ trunc 4 .MachineID }} users: - name: kairos # Change to your own user passwd: kairos # Change to your own password groups: - admin # This user needs to be part of the admin group k3s-agent: # Warning: the key is different from the master node one enabled: true args: - --with-node-id # will configure the agent to use the node ID to communicate with the master node env: K3S_TOKEN: "<token-from-master-/var/lib/rancher/k3s/server/node-token" K3S_URL: https://<master-ip-address-here>:6443 # Same IP that you use to log into your master node stages: boot: - name: "Add registries configuration for k3s/spegel" files: - path: /etc/rancher/k3s/registries.yaml content: | mirrors: "*": ``` documentation: https://docs.k3s.io/installation/registry-mirror#enabling-registry-mirroring --------- Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
14 lines
181 B
Go
14 lines
181 B
Go
package role
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
func TestP2P(t *testing.T) {
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "P2P Suite")
|
|
}
|