onelittlenightmusic / kubernetes-graphql Goto Github PK
View Code? Open in Web Editor NEWGraphQL endpoint of Kubernetes API; dynamically powered by GraphQL Mesh
License: MIT License
GraphQL endpoint of Kubernetes API; dynamically powered by GraphQL Mesh
License: MIT License
Does this support custom resource definitions?
Hi @onelittlenightmusic After running kubectl apply -f k8s/
, i met the below failure. Seems the configmap is mismatched?
Could you help me?
$ /work/node_modules/.bin/mesh dev
GraphQL Mesh Configuration is not valid:
data/serve must NOT have additional properties
πΈοΈ: Unable to find transform matching rename
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
--2022-06-27 03:33:49-- http://mesh-svc:8001/openapi/v2
Resolving mesh-svc (mesh-svc)... 10.96.229.3
Connecting to mesh-svc (mesh-svc)|10.96.229.3|:8001... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4823039 (4.6M) [text/plain]
Saving to: 'swagger.json'
swagger.json 100%[===================>] 4.60M --.-KB/s in 0.02s
2022-06-27 03:33:49 (245 MB/s) - 'swagger.json' saved [4823039/4823039]
yarn run v1.22.5
Currently kubectl container exposes all api access.
New secure connection method requires access token for Kubernetes API.
https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/
Swagger.json fetched from Kubernetes cannot be parsed by GraphQL Mesh correctly.
kubectl proxy # expose 8001 port
In .meshrc.yaml
, this must have work.
http://mesh-svc:8001/openapi/v2
GraphQL Mesh says Invalid specification
.
OpenAPI version?
Node
/Nodes
querymesh container outputs the following error and crashes.
- Generating Mesh schema...
error: Unable to start GraphQL Mesh: Cannot read property 'schema' of undefined
error Command failed with exit code 1.
Create helm chart
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.