Giter Site home page Giter Site logo

knative-minikube's Introduction

knative-minikube

Knative on macOS Apple M1 without Docker for Mac / Windows but with qemu as a Docker replacement + ZSH

zsh-completions

brew reinstall zsh-completions

echo '
if type brew &>/dev/null; then
  FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
  autoload -Uz compinit
  compinit
fi
' >> ~/.zshrc

source ~/.zshrc

qemu

brew reinstall qemu

echo '
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
' >> ~/.zshrc

sudo mkdir -p /opt/homebrew/Cellar
sudo chown -Rfv $(whoami) /opt/homebrew
ln -s $(brew --prefix)/Cellar/qemu /opt/homebrew/Cellar/qemu 

source ~/.zshrc

minikube

brew reinstall minikube

minikube completion zsh > ~/.minikube-completion
echo '[ -s "$HOME/.minikube-completion" ]] && source $HOME/.minikube-completion' >> ~/.zshrc

source ~/.zshrc

start

minikube start --driver=qemu2

kubectl

minikube kubectl
kubectl get --all-namespaces pods      -w

knative

install

brew reinstall kn
kubectl apply -f https://github.com/knative/operator/releases/download/knative-v1.11.12/operator.yaml

verify

kubectl get deployment knative-operator

logs

kubectl logs -f deploy/knative-operator

networking

kubectl create namespace knative-serving
kubectl get ns

kubectl 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.txt

kubectl get -n knative-serving service kourier
kubectl get -n knative-serving deployment

kubectl get -n knative-serving KnativeServing knative-serving      -w
#NAME              VERSION   READY   REASON
#knative-serving   1.7.1     False
#knative-serving   1.7.1     True

kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.11.22/serving-default-domain.yaml 

eventing

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.txt

kubectl 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

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.yaml

minikube stop --all=true
minikube delete --all=true

RTFM

knative-minikube's People

Contributors

jacob119 avatar daggerok avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.