From 60c00b0edf0fe1ab3db12ede6588e5421e5d4821 Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Tue, 24 Dec 2024 15:00:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(helm)=20improve=20local=20stack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the common create_cluster.sh in order to improve cooperation between teams --- bin/start-kind.sh | 140 +-------------------------------- docs/examples/meet.values.yaml | 16 +++- 2 files changed, 17 insertions(+), 139 deletions(-) diff --git a/bin/start-kind.sh b/bin/start-kind.sh index 2d1f46bc..326e61cd 100755 --- a/bin/start-kind.sh +++ b/bin/start-kind.sh @@ -1,139 +1,3 @@ -#!/bin/sh -set -o errexit +#!/bin/bash -CURRENT_DIR=$(pwd) - -echo "0. Create ca" -# 0. Create ca -mkcert -install -cd /tmp -mkcert "127.0.0.1.nip.io" "*.127.0.0.1.nip.io" -cd $CURRENT_DIR - -echo "1. Create registry container unless it already exists" -# 1. Create registry container unless it already exists -reg_name='kind-registry' -reg_port='5001' -if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then - docker run \ - -d --restart=always -p "127.0.0.1:${reg_port}:5000" --network bridge --name "${reg_name}" \ - registry:2 -fi - -echo "2. Create kind cluster with containerd registry config dir enabled" -# 2. Create kind cluster with containerd registry config dir enabled -# TODO: kind will eventually enable this by default and this patch will -# be unnecessary. -# -# See: -# https://github.com/kubernetes-sigs/kind/issues/2875 -# https://github.com/containerd/containerd/blob/main/docs/cri/config.md#registry-configuration -# See: https://github.com/containerd/containerd/blob/main/docs/hosts.md -cat <