Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daggerok/knative-minikube
Knative on macOS Apple M1 without Docker for Mac / Windows but with qemu as a Docker replacement + ZSH
https://github.com/daggerok/knative-minikube
docker-for-mac-replacement docker-for-windows-replacement docker-replacement knative macos minikube qemu zsh zsh-completions
Last synced: 8 days ago
JSON representation
Knative on macOS Apple M1 without Docker for Mac / Windows but with qemu as a Docker replacement + ZSH
- Host: GitHub
- URL: https://github.com/daggerok/knative-minikube
- Owner: daggerok
- Created: 2022-09-27T19:59:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T20:01:36.000Z (over 2 years ago)
- Last Synced: 2024-11-11T15:39:04.485Z (2 months ago)
- Topics: docker-for-mac-replacement, docker-for-windows-replacement, docker-replacement, knative, macos, minikube, qemu, zsh, zsh-completions
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# knative-minikube
Knative on macOS Apple M1 without Docker for Mac / Windows but with qemu as a Docker replacement + ZSH## zsh-completions
```bash
brew reinstall zsh-completionsecho '
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
' >> ~/.zshrcsource ~/.zshrc
```## qemu
```bash
brew reinstall qemuecho '
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/Cellar/qemu/*/bin:$FPATH
PATH=$(brew --prefix)/Cellar/qemu/*/bin:$PATH
autoload -Uz compinit
compinit
fi
' >> ~/.zshrcsudo mkdir -p /opt/homebrew/Cellar
sudo chown -Rfv $(whoami) /opt/homebrew
ln -s $(brew --prefix)/Cellar/qemu /opt/homebrew/Cellar/qemusource ~/.zshrc
```## minikube
```bash
brew reinstall minikubeminikube completion zsh > ~/.minikube-completion
echo '[ -s "$HOME/.minikube-completion" ]] && source $HOME/.minikube-completion' >> ~/.zshrcsource ~/.zshrc
```## start
```bash
minikube start --driver=qemu2
```## kubectl
```bash
minikube kubectl
kubectl get --all-namespaces pods -w
```## knative
### install
```bash
brew reinstall kn
kubectl apply -f https://github.com/knative/operator/releases/download/knative-v1.7.1/operator.yaml
```### verify
```bash
kubectl get deployment knative-operator
```### logs
```bash
kubectl logs -f deploy/knative-operator
```### networking
```bash
kubectl create namespace knative-serving
kubectl get nskubectl config set-context --current --namespace=knative-serving
echo '
apiVersion: operator.knative.dev/v1beta1
kind: KnativeServing
metadata:
name: knative-serving
namespace: knative-serving
spec:
# ...
ingress:
kourier:
enabled: true
config:
network:
ingress-class: "kourier.ingress.networking.knative.dev"
' > /tmp/kn.networking.txt && kubectl apply -f /tmp/kn.networking.txtkubectl get -n knative-serving service kourier
kubectl get -n knative-serving deploymentkubectl get -n knative-serving KnativeServing knative-serving -w
#NAME VERSION READY REASON
#knative-serving 1.7.1 False
#knative-serving 1.7.1 Truekubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.7.2/serving-default-domain.yaml
```### eventing
```bash
echo '
apiVersion: v1
kind: Namespace
metadata:
name: knative-eventing
---
apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
' > /tmp/kn.eventing.txt && kubectl apply -f /tmp/kn.eventing.txtkubectl get deployment -n knative-eventing
kubectl get KnativeEventing knative-eventing -n knative-eventing -w
#NAME VERSION READY REASON
#knative-eventing 1.7.2 False NotReady # <-- TODO
```## cleanup
```bash
kubectl delete KnativeEventing knative-eventing -n knative-eventing
kubectl delete KnativeServing knative-serving -n knative-serving
kubectl delete -f https://github.com/knative/operator/releases/download/knative-v1.7.1/operator.yamlminikube stop --all=true
minikube delete --all=true
```## RTFM
* https://www.youtube.com/watch?v=LGNEG-t96eE&ab_channel=DevOpsToolkit
* https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial/setup/minikube.html
* https://minikube.sigs.k8s.io/docs/commands/completion/
* https://knative.dev/docs/install/operator/knative-with-operators/
* https://flaviocopes.com/linux-command-xargs/#:~:text=The%20xargs%20command%20is%20used,the%20input%20of%20another%20command.