Support for Knative Serving spec

Fly is recently supporting Kubernetes with FKE,
I’m curious whether the topic of supporting the Knative Serving spec for declaring serverless workloads (much like Fly.toml) has come up.

spec: knative-api-specification-1.0.md

Take a Service like

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

would be almost the same as

app = 'helloworld-go'

[build]
  image = 'ghcr.io/knative/helloworld-go:latest'

[env]
  TARGET = 'Go Sample v1'

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  size = 'shared-cpu-1x'

If the Knative Serving spec were supported, it would make it simpler to run portable workloads on Fly or other places like Google Cloud Run or Knative Serving by having the same configuration.

That said, I understand if it’s not something Fly would either want to or could support.

Cheers!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.