Token issue command¶
Issue a token file redeemable for a link to the current site.
| Platforms | Kubernetes |
|---|---|
| Waits for | Ready |
Examples¶
# Issue an access token
$ skupper token issue ~/token.yaml
Waiting for status...
Access grant "west-6bfn6" is ready.
Token file /home/fritz/token.yaml created.
Transfer this file to a remote site. At the remote site,
create a link to this site using the 'skupper token
redeem' command:
$ skupper token redeem <file>
The token expires after 1 use or after 15 minutes.
# Issue an access token with non-default limits
$ skupper token issue ~/token.yaml --expiration-window 24h --redemptions-allowed 3
# Issue a token using an existing access grant
$ skupper token issue ~/token.yaml --grant west-1
Primary options¶
--cost
<string>
the configured "expense" of sending traffic over the link. (default "1")
| Default |
|
|---|---|
| Platforms | Kubernetes, Docker, Podman, Linux |
--expiration-window
<duration>
The period of time in which an access token for this grant can be redeemed. (default 15m0s)
| Default |
|
|---|---|
| Platforms | Kubernetes, Docker, Podman, Linux |
--help
boolean
help for issue
| Platforms | Kubernetes, Docker, Podman, Linux |
|---|
--redemptions-allowed
<int>
The number of times an access token for this grant can be redeemed. (default 1)
| Default |
|
|---|---|
| Platforms | Kubernetes, Docker, Podman, Linux |
--timeout
<duration>
raise an error if the operation does not complete in the given period of time (expressed in seconds). (default 1m0s) ``` ``` -c, --context string Set the kubeconfig context
| Default |
|
|---|---|
| Platforms | Kubernetes, Docker, Podman, Linux |
--kubeconfig
<string>
Path to the kubeconfig file to use -n, --namespace string Set the namespace -p, --platform string Set the platform type to use [kubernetes, podman, docker, linux] ```
| Platforms | Kubernetes, Docker, Podman, Linux |
|---|
Global options¶
Errors¶
- Link access is not enabled
Link access at this site is not currently enabled. You can use "skupper site update --enable-link-access" to enable it.