Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bobymcbobs/sample-local-knative-istio-apisnoop-in-kind
- Owner: BobyMCbobs
- Created: 2023-08-02T20:22:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-01T19:25:45.000Z (about 1 year ago)
- Last Synced: 2023-10-02T06:27:47.944Z (about 1 year ago)
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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_srcFluxCD
#+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_srcBring 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_srcoption 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_srcWIP
#+begin_src shell
flux bootstrap git --url=ssh://[email protected]/BobyMCbobs/sample-local-kind-knative-istio --branch=main --path=clusters/kind
#+end_src