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
- Host: GitHub
- URL: https://github.com/xissy/kubeflake
- Owner: xissy
- Created: 2018-12-24T05:00:05.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T09:46:54.000Z (about 2 years ago)
- Last Synced: 2025-02-27T23:10:23.198Z (over 1 year ago)
- Topics: golang, kubernetes
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
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) |