789 B
789 B
title | id | date | full_link | short_description | tags | |
---|---|---|---|---|---|---|
Duration | duration | 2024-10-05 | A string value representing an amount of time. |
|
A string value representing an amount of time.
The format of a (Kubernetes) duration is based on the
time.Duration
type from the Go programming language.
In Kubernetes APIs that use durations, the value is expressed as series of a non-negative integers combined with a time unit suffix. You can have more than one time quantity and the duration is the sum of those time quantities. The valid time units are "ns", "µs" (or "us"), "ms", "s", "m", and "h".
For example: 5s
represents a duration of five seconds, and 1m30s
represents a duration
of one minute and thirty seconds.