Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Knative Services #114

Open
cardil opened this issue May 21, 2020 · 0 comments
Open

Add support for Knative Services #114

cardil opened this issue May 21, 2020 · 0 comments

Comments

@cardil
Copy link

cardil commented May 21, 2020

Is your feature request related to a problem? Please describe.
Current implementation of K8s service locator looks for pods, and fetches their image. Image is parsed so that name and version of a service is resolved.

Knative project introduces serverless programming into K8s world. Knative services scale their pods to zero if there is no traffic going into them. In that way Judge-d will not find them as a service.

Describe the solution you'd like
To support Knative services, one should look on service.serving.knative.dev resource type, and took image from it's spec section. Below example Kservice can be seen:

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: forwarder
  namespace: demo
spec:
  template:
    spec:
      containers:
        - name: forwarder
          image: quay.io/cardil/wathola-forwarder:v0.7.0
          readinessProbe:
            httpGet:
              path: /healthz

Describe alternatives you've considered
none

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant