An open API service indexing awesome lists of open source software.

https://github.com/xissy/kubeflake

64bit orderable unique ID
https://github.com/xissy/kubeflake

golang kubernetes

Last synced: about 1 year ago
JSON representation

64bit orderable unique ID

Awesome Lists containing this project

README

          

# kubeflake
> sonyflake + pod hostname as machine id

## 64bit orderable unique ID

### Sonyflake
https://github.com/sony/sonyflake

### Machine ID
The hostname of a Container is the name of the Pod in which the
Container is running. It is available through the hostname command or
the gethostname function call in libc. [Link](https://kubernetes.io/docs/concepts/containers/container-environment-variables/#container-information)

## Language Supports

| Language | Source |
|------------|-----------------------------------------------------------------------------|
| Go | [kubeflake.go](kubeflake.go) |
| Typescript | [kubeflake.ts](https://github.com/kanziw/kubeflake/blob/main/kubeflake.ts) |