Giter Site home page Giter Site logo

Comments (15)

jgensler8 avatar jgensler8 commented on August 16, 2024

Hey @alexellis,

I have implemented a Controller for OpenFaaS definitions: https://github.com/jgensler8/openfaas-controller

To do so, I have generated and committed a go-client library for OpenFaaS: https://github.com/jgensler8/openfaas-client-go

Definitions look like the following:

apiVersion: "jgensler8.openfaas.apiextensions.k8s.io/v1"
kind: "Function"
metadata:
  name: "samplefunction"
spec:
  service: "myservicetwo"
  image: "nginx:1.13"
  envVars: []
  envProcess: ""
  registryAuth: ""
  network: ""

As you can see, the apiversion should probably change to something more "official." Perhaps referencing other projects (like Istio) could help with deciding a proper group

In terms of using the generated go client library, I think there is some overlap with openfaas/faas#214 as the names of the CRUD functions look like SystemFunctionsPut instead of UpdateSystemFunctions or UpdateFunction

Let me know what you think of the initial design as well as moving the go-client library elsewhere.

Regards,
Jeff

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

@stefanprodan has started to do a spike on this at https://github.com/openfaas-incubator/faas-o6s

Stefan can you update this issue with the discussion from the yesterday around versioning and migration.

@jgensler8 thanks for spending some time looking into this. Do we have you in the Slack community yet?

from faas-netes.

jgensler8 avatar jgensler8 commented on August 16, 2024

@alexellis I am not in the Slack Channel yet. I'll tweet or email in the next day or so.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Please email [email protected] so I can get you into the community Slack. If possible it'd be great to have you two collaborating on this piece.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Work is in progress on this. cc @jgensler8

from faas-netes.

burtonr avatar burtonr commented on August 16, 2024

@stefanprodan Could you share a little about what you've done with this?
I see it's implemented on openfaas-operator here: https://github.com/openfaas-incubator/openfaas-operator/pull/8

Is there any chance of that getting ported back here?

from faas-netes.

stefanprodan avatar stefanprodan commented on August 16, 2024

I would deprecate the current faas-netes code, move it to a branch and copy the openfaas-operator code into faas-netes master. The downside to this would be breaking compatibility with Kubernetes 1.7

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

faas-netes is stable and openfaas-operator is alpha, it needs testing and exposure which we are planning to do through allowing people to install it with Helm.

This issue should stay open to track the progress of above.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Ping to @jgensler8 - please could you take a look at our operator and kick the tires?

from faas-netes.

jgensler8 avatar jgensler8 commented on August 16, 2024

@alexellis I don't think I'll have time to look at your operator. I have explored non-Kubernetes options as the cost of hosting Kubernetes was too much for my side project.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

You can host on a single node VPS for less than $5/month

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

@stefanprodan what thoughts do you have on the new operator framework/SDK via CoreOS/RedHat? Pros/cons? https://github.com/operator-framework

from faas-netes.

stefanprodan avatar stefanprodan commented on August 16, 2024

I've taken a look at the RedHat Operator SDK and my conclusion is that we should stick to the current implementation based on the official Kubernetes CRD Controller. The Operator SDK is pre-alpha and lacks some features that we need such as access to k8s_client, Prometheus Integration, EventRecorder support and many more.

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Derek close: released as OpenFaaS Operator

from faas-netes.

alexellis avatar alexellis commented on August 16, 2024

Derek lock

from faas-netes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.