File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
content/influxdb/clustered/admin Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,13 @@ The only way to revoke the token is to do the following:
63
63
64
64
{{% code-placeholders " INFLUXDB_NAMESPACE|KEY_GEN_JOB|001" %}}
65
65
66
- 1. Delete the ` rsa-keys` secret from your InfluxDB cluster' s context and namespace:
66
+ 1. Delete the ` rsa-keys` and ` admin-token ` secrets from your InfluxDB cluster' s context and namespace:
67
67
68
68
```sh
69
- kubectl delete secrets/ rsa-keys --namespace INFLUXDB_NAMESPACE
69
+ kubectl delete secret rsa-keys admin-token --namespace INFLUXDB_NAMESPACE
70
70
```
71
71
72
- 2. Rerun the `key-gen` job :
72
+ 2. Rerun the `key-gen` and `create-amin-token` jobs :
73
73
74
74
1. List the jobs in your InfluxDB namespace to find the key-gen job pod:
75
75
@@ -78,12 +78,11 @@ The only way to revoke the token is to do the following:
78
78
kubectl get jobs --namespace INFLUXDB_NAMESPACE
79
79
```
80
80
81
- 2. Run the key-gen job and increment the job number as needed :
82
-
81
+ 2. Delete the key-gen and create-admin-token jobs so they it will be re-created by kubit :
82
+
83
83
```sh
84
- kubectl create job \
85
- --from=job/KEY_GEN_JOB key-gen-001 \
86
- --namespace INFLUXDB_NAMESPACE
84
+ kubectl delete job/KEY_GEN_JOB job/CREATE_ADMIN_TOKEN_JOB \
85
+ --namespace INFLUXDB_NAMESPACE
87
86
```
88
87
89
88
3. Restart the `token-management` service:
You can’t perform that action at this time.
0 commit comments