Git Product home page Git Product logo

codius-operator's Introduction

Codius Operator

Kubebuilder-based operator for Codius custom resource definition

Dependencies

sudo make docker-build docker-push IMG=<some-registry>/<project-name>:tag
make deploy IMG=<some-registry>/<project-name>:tag

Environment Variables

Configure by patching the controller manager deployment with Kustomize.

CODIUS_HOSTNAME

  • Type: String
  • Description: Hostname of the Codius host

CODIUS_HELLO_SVC_URL

  • Type: String
  • Description: URL for the internal hello service. Codius service deployment initContainers will query the hello service to determine when the pod's egress network policy has been enforced.

CODIUS_WEB_URL

  • Type: String
  • Description: URL of the Codius web frontend.

CODIUS_NAMESPACE

  • Type: String
  • Description: Namespace in which to create deployments, services, and ingresses. The operator controller manager must have the necessary permissions in this namespace. This is also the namespace to which the network policy should be applied.

RECEIPT_VERIFIER_URL

  • Type: String
  • Description: URL of the receipt verifier with which to deduct paid balances.

REQUEST_PRICE

  • Type: Number
  • Description: The amount required to have been paid to serve a request. Denominated in the host's asset (code and scale).

RUNTIME_CLASS_NAME

  • Type: String
  • Description: RuntimeClass to use for Codius service deployments' runtimeClassName

SERVICE_PRICE

  • Type: Number
  • Description: The amount required to have been paid to create a service. Denominated in the host's asset (code and scale).

API Documentation

PUT /services/{ID}

Create a Codius service

Request Body:
Field Name Type Description
spec Object An object containing details for your service.
secretData Object An object containing private variables you want to pass to the host, such as an AWS key.

GET /services/{ID}

Retrieve the specified Codius service

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.