Skip to content

Commit 7ce1b54

Browse files
xcompasschenopis
authored andcommitted
Add generic to create secret command
The generic is missing from the command and will cause error: `Error: unknown flag: --type` when running the command.
1 parent ced2861 commit 7ce1b54

File tree

1 file changed

+3
-3
lines changed
  • docs/user-guide/persistent-volumes

1 file changed

+3
-3
lines changed

docs/user-guide/persistent-volumes/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ parameters:
423423
* `restuserkey` : Gluster REST service/Heketi user's password which will be used for authentication to the REST server. This parameter is deprecated in favor of `secretNamespace` + `secretName`.
424424
* `secretNamespace` + `secretName` : Identification of Secret instance that containes user password to use when talking to Gluster REST service. These parameters are optional, empty password will be used when both `secretNamespace` and `secretName` are omitted. The provided secret must have type "kubernetes.io/glusterfs", e.g. created in this way:
425425
```
426-
$ kubectl create secret heketi-secret --type="kubernetes.io/glusterfs" --from-literal=key='opensesame' --namespace=default
426+
$ kubectl create secret generic heketi-secret --type="kubernetes.io/glusterfs" --from-literal=key='opensesame' --namespace=default
427427
```
428428
429429
#### OpenStack Cinder
@@ -482,7 +482,7 @@ parameters:
482482
* `userId`: Ceph client ID that is used to map the RBD image. Default is the same as `adminId`.
483483
* `userSecretName`: The name of Ceph Secret for `userId` to map RBD image. It must exist in the same namespace as PVCs. This parameter is required. The provided secret must have type "kubernetes.io/rbd", e.g. created in this way:
484484
```
485-
$ kubectl create secret ceph-secret --type="kubernetes.io/rbd" --from-literal=key='QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ==' --namespace=kube-system
485+
$ kubectl create secret generic ceph-secret --type="kubernetes.io/rbd" --from-literal=key='QVFEQ1pMdFhPUnQrSmhBQUFYaERWNHJsZ3BsMmNjcDR6RFZST0E9PQ==' --namespace=kube-system
486486
```
487487
488488
#### Quobyte
@@ -509,7 +509,7 @@ parameters:
509509
* `adminSecretNamespace`: The namespace for `adminSecretName`. Default is "default".
510510
* `adminSecretName`: secret that holds information about the Quobyte user and the password to authenticate agains the API server. The provided secret must have type "kubernetes.io/quobyte", e.g. created in this way:
511511
```
512-
$ kubectl create secret quobyte-admin-secret --type="kubernetes.io/quobyte" --from-literal=key='opensesame' --namespace=kube-system
512+
$ kubectl create secret generic quobyte-admin-secret --type="kubernetes.io/quobyte" --from-literal=key='opensesame' --namespace=kube-system
513513
```
514514
* `user`: maps all access to this user. Default is "root".
515515
* `group`: maps all access to this group. Default is "nfsnobody".

0 commit comments

Comments
 (0)