在Openshift上安装后,KNative服务未显示就绪

时间:2020-01-12 11:54:09

标签: openshift knative

按照链接-https://docs.openshift.com/container-platform/4.1/serverless/installing-openshift-serverless.html来在Openshift v4.1之上安装KNative Serving。安装所有openshift操作员后,控制飞机。链接中给出的会员名册等;我希望通过执行-

来看到服务组件正在运行
C:\Knative installation>oc get knativeserving/knative-serving -n knative-serving --template='{{range .status.conditions}}{{printf "%s=%s\n" .type .status}}{{end}}'

但是上面没有返回任何内容。只需返回提示即可。

以下也是服务组件的get resource命令的o / p-

C:\Knative installation>oc get knativeserving/knative-serving -n knative-serving
NAME              VERSION   READY   REASON
knative-serving

C:\Knative installation>oc get knativeserving/knative-serving -n knative-serving -o yaml
apiVersion: serving.knative.dev/v1alpha1
kind: KnativeServing
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"serving.knative.dev/v1alpha1","kind":"KnativeServing","metadata": {"annotations":{},"name":"knative-serving","namespace":"knative-serving"}}
  creationTimestamp: "2020-01-12T10:53:42Z"
  generation: 1
  name: knative-serving
  namespace: knative-serving
  resourceVersion: "63660251"
  selfLink: /apis/serving.knative.dev/v1alpha1/namespaces/knative-serving/knativeservings/knative-serving
  uid: cc4b330f-3529-11ea-83ef-0272cb600f74

可能是什么问题?我相信KNative Serving不能正确安装,但不确定如何调试。我卸载并重新安装了几次,但没有帮助。

我还想继续使用KNative Serving(参考链接https://docs.openshift.com/container-platform/4.1/serverless/getting-started-knative-services.html)安装服务,但是应用第一个资源显示了问题。

service.yaml

apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
  name: helloworld-go 
  namespace: default 
spec:
  template:
    spec:
      containers:
        - image: gcr.io/knative-samples/helloworld-go 
          env:
            - name: TARGET 
              value: "Go Sample v1"

正在应用service.yaml返回错误。

C:\start Knative service> oc apply --filename service.yaml
error: unable to recognize "service.yaml": no matches for kind "Service" in version "serving.knative.dev/v1alpha1"

感谢您的帮助。谢谢。

0 个答案:

没有答案