diff --git a/INSTALL.kind.md b/INSTALL.kind.md index 19f4a4878..730433fba 100644 --- a/INSTALL.kind.md +++ b/INSTALL.kind.md @@ -13,18 +13,16 @@ In order to install korifi on kind effortlessly we have prepared an installation In order to access the Korifi API, we'll need to [expose the cluster ingress locally](https://kind.sigs.k8s.io/docs/user/ingress/). To do it, create your kind cluster using a command like this: ```sh -cat <'${REGISTRY_DIR}/hosts.toml'" +[host."http://127.0.0.1:30050"] +EOF ``` ## Install Korifi diff --git a/scripts/assets/kind-config.yaml b/scripts/assets/kind-config.yaml index ed8d87cb4..3f01eae5a 100644 --- a/scripts/assets/kind-config.yaml +++ b/scripts/assets/kind-config.yaml @@ -3,12 +3,7 @@ apiVersion: kind.x-k8s.io/v1alpha4 containerdConfigPatches: - |- [plugins."io.containerd.grpc.v1.cri".registry] - [plugins."io.containerd.grpc.v1.cri".registry.mirrors] - [plugins."io.containerd.grpc.v1.cri".registry.mirrors."localregistry-docker-registry.default.svc.cluster.local:30050"] - endpoint = ["http://127.0.0.1:30050"] - [plugins."io.containerd.grpc.v1.cri".registry.configs] - [plugins."io.containerd.grpc.v1.cri".registry.configs."127.0.0.1:30050".tls] - insecure_skip_verify = true + config_path = "/etc/containerd/certs.d" nodes: - role: control-plane extraPortMappings: diff --git a/scripts/deploy-on-kind.sh b/scripts/deploy-on-kind.sh index b8b2fe615..392ee58dc 100755 --- a/scripts/deploy-on-kind.sh +++ b/scripts/deploy-on-kind.sh @@ -106,6 +106,10 @@ function ensure_local_registry() { --set persistence.deleteEnabled=true \ --set secrets.htpasswd='user:$2y$05$Ue5dboOfmqk6Say31Sin9uVbHWTl8J1Sgq9QyAEmFQRnq1TPfP1n2' + local registry_dir="/etc/containerd/certs.d/$LOCAL_DOCKER_REGISTRY_ADDRESS" + cat <'$registry_dir/hosts.toml'" +[host."http://127.0.0.1:30050"] +EOF } function install_dependencies() {