add scripts and config for a local kind cluster
This commit is contained in:
7
kind/config.yaml
Normal file
7
kind/config.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
kind: Cluster
|
||||
apiVersion: kind.x-k8s.io/v1alpha4
|
||||
name: ontime-operator
|
||||
nodes:
|
||||
- role: control-plane
|
||||
- role: worker
|
||||
- role: worker
|
||||
12
kind/create.sh
Executable file
12
kind/create.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
|
||||
ROOT=$(realpath "$SCRIPT_DIR/..")
|
||||
set -e
|
||||
kind create cluster --config "$SCRIPT_DIR/config.yaml"
|
||||
kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.0/standard-install.yaml
|
||||
kubectl apply -f "$SCRIPT_DIR/manifests"
|
||||
export IMG=ontime-operator:dev
|
||||
make -C "$ROOT" docker-build
|
||||
kind load docker-image --name ontime-operator "${IMG}"
|
||||
make -C "$ROOT" deploy
|
||||
kubectl apply -k "$ROOT/config/samples"
|
||||
sudo cloud-provider-kind
|
||||
1
kind/delete.sh
Executable file
1
kind/delete.sh
Executable file
@@ -0,0 +1 @@
|
||||
kind delete cluster --name ontime-operator
|
||||
14
kind/manifests/gateway.yaml
Normal file
14
kind/manifests/gateway.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: gateway
|
||||
namespace: kube-system
|
||||
spec:
|
||||
gatewayClassName: cloud-provider-kind
|
||||
listeners:
|
||||
- name: default
|
||||
port: 80
|
||||
protocol: HTTP
|
||||
allowedRoutes:
|
||||
namespaces:
|
||||
from: All
|
||||
Reference in New Issue
Block a user