云代码和Knative-如何指定选择器

时间:2019-10-02 14:13:01

标签: cloud-code knative knative-serving

如何在Knative中指定选择器/匹配标签?

apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
  name: go-hello-world
  namespace: default
spec:
  template:
    spec:
      containers:
        - image: gcr.io/<projectid>/go-hello-world

我需要使用Cloud Code通过选择器调试容器 VS Code-云代码扩展:

  "podSelector": {
    "app": "go-hello-world"
  },

0 个答案:

没有答案