Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bobymcbobs/sample-local-knative-istio-apisnoop-in-kind


https://github.com/bobymcbobs/sample-local-knative-istio-apisnoop-in-kind

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

#+title: Sample local Knative, Istio and APISnoop in Kind

#+begin_quote
A local Knative with Istio running in Kind configured how I like it
#+end_quote

* Prepare
#+begin_src shell :results silent
VERSION=1.11.5
mkdir -p ./clusters/kind/knative-{operator,serving}
curl -sSL -o ./clusters/kind/knative-operator/knative-operator.yaml "https://github.com/knative/operator/releases/download/knative-v${VERSION}/operator.yaml"
sed -i -e 's/namespace: default/namespace: knative-operator/g' ./clusters/kind/knative-operator/knative-operator.yaml
curl -sSL -o ./clusters/kind/knative-serving/net-istio.yaml https://github.com/knative-sandbox/net-istio/releases/download/knative-v1.11.0/net-istio.yaml
curl -sSL -o ./clusters/kind/knative-serving/net-gateway-api.yaml https://github.com/knative-sandbox/net-gateway-api/releases/download/knative-v1.11.0/net-gateway-api.yaml
#+end_src

* Render
Istio
#+begin_src shell :results silent
istioctl manifest generate -f ./values/istio.yaml > ./clusters/kind/istio-system/istio.yaml
#+end_src

FluxCD
#+begin_src shell :results silent
flux install --export > ./clusters/kind/flux-system/gotk-components.yaml
#+end_src

* Deploy
#+begin_src shell
podman machine init --cpus 4 --memory 4096 --rootful podman-machine-default --user-mode-networking
#+end_src

Bring up kind
#+begin_src shell :noexec yes
kind create cluster --config ./kind-config.yaml
#+end_src
(sudo may be required on some systems for access to privileged ports)

Wait for one of the last things to come up
#+begin_src shell :results silent
kubectl -n local-path-storage wait --for=condition=Ready pod -l app=local-path-provisioner
#+end_src

option with sudo
#+begin_src shell :exec no
read -p "OVERWRITE YOUR KUBECONFIG???" && sudo cp ~root/.kube/config ~/.kube/config
#+end_src

#+begin_src shell :results silent
until kubectl apply -k .; do sleep 1s; done
#+end_src

WIP
#+begin_src shell
flux bootstrap git --url=ssh://[email protected]/BobyMCbobs/sample-local-kind-knative-istio --branch=main --path=clusters/kind
#+end_src