mirror of
https://github.com/kairos-io/provider-kairos.git
synced 2025-09-28 16:05:19 +00:00
3100 fix embedded registry config (#812)
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>
This commit is contained in:
committed by
GitHub
parent
e9a0a656a1
commit
e88f724d19
13
internal/role/p2p/suite_test.go
Normal file
13
internal/role/p2p/suite_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package role
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
||||
func TestP2P(t *testing.T) {
|
||||
RegisterFailHandler(Fail)
|
||||
RunSpecs(t, "P2P Suite")
|
||||
}
|
Reference in New Issue
Block a user