安装knative
官方安装步骤
安装CRDkubectl apply --filename https://github.com/knative/serving/releases/download/v0.17.0/serving-crds.yaml
安装knative serving
安装serving-core
,出现镜像无法拉取错误ImagePullBackOff
错误,看了下是镜像地址是墙外地址gcr.io
,把他换成阿里云地址:kubectl edit deployment -nknative-serving
# Please edit the object below. Lines beginning with a '#' will be ignored, |
选择网络层安装
这里我们选择Kong
作为网关,安装kong ingress controller:kubectl apply --filename https://raw.githubusercontent.com/Kong/kubernetes-ingress-controller/0.9.x/deploy/single/all-in-one-dbless.yaml
配置knative serving 使用 Kong
:kubectl patch configmap/config-network \
--namespace knative-serving \
--type merge \
--patch '{"data":{"ingress.class":"kong"}}'
配置DNS
kubectl patch configmap/config-domain \ |