Better HN
topnewbestaskshowjobs
Log inSign up

alberteinstein

129 karma · joined Apr 27, 2016 (10y ago) · 35 submissions

Submissions

1.

Hasura Cloud: Managed GraphQL for your database and services(hasura.io ↗)

11 points · by alberteinstein · 6y ago · discuss

2.

Linux Foundation Announces GraphQL Foundation(gql.foundation ↗)

5 points · by alberteinstein · 8y ago · discuss

comment 8y ago · link · parent

Whether it's a gimmick or not, the fact that there is a need/demand for such products is a scary one. People want to wear bullet proof fashionable clothing since they are not sure when they'll be shot at? It didn't matter how ugly bullet proof vests are since those who wore them didn't care how they looked, they just wanted to stay alive. This is really scary.

comment 8y ago · link · parent

The system with worst or no abort procedures is the Space Shuttle. Earlier versions had ejection seats, but they got rid of that. Imagine if they had Soyuz like capsule which can popped off. Both Challenger and Discovery crew would have been ok. No wonder they discontinued that program.

comment 8y ago · link · parent

One of the authors here: You can open GraphiQL on any GraphQL endpoint using graphqurl:

  gq https://api.yelp.com/v3/graphql -H "Authorization: Bearer ACCESS_TOKEN" -H "Content-Type: application/graphql" -i

6.

Show HN: Graphqurl: curl for GraphQL with autocomplete, subscriptions, GraphiQL(github.com ↗)

3 points · by alberteinstein · 8y ago · discuss

comment 8y ago · link · parent

Please do reach out to us on discord [1] if you have any questions whatsoever :)

[1]: https://discord.gg/vBPpJkS

comment 8y ago · link · parent

The GraphQL Engine is written in Haskell, the Console in JavaScript and the CLI in Go. The repo contains all the three components. :) (I am one of the maintainers)

comment 8y ago · link · parent

We built this tool to bootstrap vendor specific declarative templates (Google Cloud Deployment Manager Template [1], Azure Resource Manager Template [2] etc.) that provisions a Kuberentes cluster (and disks), because writing them by hand is a pain. Kubeformation can read a spec file (common for all vendors) and generate these templates.

[1] https://cloud.google.com/deployment-manager/ [2] https://docs.microsoft.com/en-us/azure/azure-resource-manage...

10.

Show HN: Kubeformation – simplify cluster creation on managed kubernetes vendors(kubeformation.sh ↗)

13 points · by alberteinstein · 8y ago · 1 comment

comment 8y ago · link · parent

Co-author here. We built this tool to bootstrap vendor specific declarative templates (Google Cloud Deployment Manager Template [1], Azure Resource Manager Template [2] etc.) that provisions a Kuberentes cluster (and disks), because writing them by hand is a pain.

[1] https://cloud.google.com/deployment-manager/ [2] https://docs.microsoft.com/en-us/azure/azure-resource-manage...

12.

Create declarative cluster specifications for your managed Kubernetes vendor(kubeformation.sh ↗)

18 points · by alberteinstein · 8y ago · 1 comment

comment 8y ago · link · parent

Indeed! And when the logs show nothing being wrong? All k8s components were reporting that everything is fine.

comment 8y ago · link · parent

Using netstat/lsof/tcp_dump from inside the containers did not help unfortunately. Eventual next step was to check nodes and kernel logs revealed the issue rightaway.

15.

Debugging a TCP socket leak in a Kubernetes cluster(blog.hasura.io ↗)

61 points · by alberteinstein · 8y ago · 11 comments

comment 8y ago · link · parent

Spacemacs in Vim mode: best of both worlds

comment 8y ago · link · parent

Yes, ksync and telepresence lets you develop on k8s cluster as if you were doing on the local system. Haven't looked at forge yet.

These tools are really useful when you're writing code dependent on other components or features on the cluster (like DNS). They save you a lot of port forward, environment variable hassles. Gives high velocity development flows, which were quite long build-push-deploy workflows earlier.

18.

Draft, Gitkube, Helm, Ksonnet, Metaparticle, Skaffold – Comparison of K8s Tools(blog.hasura.io ↗)

79 points · by alberteinstein · 8y ago · 22 comments

comment 8y ago · link · parent

Gitkube is simpler since everything is contained in the cluster itself. Image is built and rolled out from within the cluster right now. (gitkube contributor here)

comment 8y ago · link · parent

Kubernetes will definitely be an overkill if you run only one container. But, if your application follows microservice architecture and have multiple containers, Kubernetes is the best solution to run them.

Kubernetes architecture is entirely different from that of Docker Swarm.

A Kubernetes Service object [1] can load balance traffic to various Kubernetes Pods (think containers) [2] as defined by it's " pod selectors". It can choose to direct traffic only to running containers.

[1] https://kubernetes.io/docs/concepts/services-networking/serv... [2] https://kubernetes.io/docs/concepts/workloads/pods/pod/

comment 8y ago · link · parent

Yes, it does. Kubernetes can perform rolling updates [1].

One scenario is that when you rollout a new version, the old container will only be killed when new one is up and running. If there are many replicas running, Kubernetes will replace them with new versions one by one. And all of this behaviour is highly configurable.

[1] https://kubernetes.io/docs/tutorials/kubernetes-basics/updat...

comment 8y ago · link · parent

If you use container orchestration platforms like Kubernetes, this is not required, as restarts load balancing etc. are handled by the orchestrator.

comment 8y ago · link · parent

True, optimising with a multi-stage build after `yarn build` should do it.

comment 8y ago · link · parent

This doesn't happen on Kubernetes. The Pod stays in ContainerCreating state unless the entire image is pulled. We are running some Java containers which are >2GB and apart from the time it takes to start-up on a fresh node, everything is fine.

comment 8y ago · link · parent

This adds an un-necessary dependency between services. Team working on service A would need to coordinate with team working on service B to keep same layers. The contract should be to keep the image size as small as possible, and teams can work independently.

Also, python:3.6 doesn't always mean the same layers, since it could be rebuilt with entirely different layers with same tag, unless FROM is locked to a particular layer.

comment 8y ago · link · parent

#4: Another motivation for using Alpine is to have a shell available so that quick debugging is possible if something goes wrong. For e.g. use ping to see if DNS lookups are happening in a Kubernetes cluster.

comment 8y ago · link · parent

When a container is scheduled to a node in Kubernetes, if the image is already available, it takes only ~2s for it to be up and running. But, if it is not present on a node and the image is of 2GB, the download speed is the rate limiting factor, taking start up times well beyond 2 seconds. And in a multi node environment where you do scaling up and down or maybe autoscale, new nodes could come up a lot. So, Leaner images are always better.
12