Code Monkey home page Code Monkey logo

sekstant's Introduction

image

sekstant

GraphQL interface for the Kubernetes API.

apiVersion: v1
kind: Pod
metadata:
  name: sekstant
spec:
  containers:
  - name: sekstant
    image: gcr.io/sekstant/sekstant
    ports:
    - containerPort: 11456

The image expects to run inside a Kubernetes cluster. On startup, it queries the API server for its Swagger specification and translates it into a GraphQL schema which is then exposed as an HTTP endpoint.

Custom resource definitions may be supported in the future.

Options

PORT Container port used to expose the GraphQL api (default 11456)

PATHNAME URL path at which GraphQL API is exposed (default /graphql)

GRAPHIQL Configuration to enable the GraphiQL IDE (default disabled)

Authorization

Authorization is inherited from the pod's service account credentials read from the container's filesystem. The following options allow configuration of this behavior.

Example service account and RBAC configuration.

API_SERVER_URL Base URL of the API server (default https://kubernetes.default.svc)

TOKEN_PATH Path to the pod's service account token (default /var/run/secrets/kubernetes.io/serviceaccount/token)

CERTIFICATE_PATH Path to the API server's certificate (default /var/run/secrets/kubernetes.io/serviceaccount/ca.crt)

You may need to enable RBAC explicitly when using minikube.

License

MIT

sekstant's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.