mirror of https://github.com/status-im/consul.git
doc: Update acl-method command example (#8845)
* Update acl-method command example * add tailing backtick
This commit is contained in:
parent
ceba2c6422
commit
16937d7f5d
|
@ -37,7 +37,7 @@ Usage: consul acl auth-method <subcommand> [options] [args]
|
||||||
-name "my-k8s" \
|
-name "my-k8s" \
|
||||||
-description "This is an example kube auth method" \
|
-description "This is an example kube auth method" \
|
||||||
-kubernetes-host "https://apiserver.example.com:8443" \
|
-kubernetes-host "https://apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
||||||
|
|
||||||
List all auth methods:
|
List all auth methods:
|
||||||
|
@ -49,7 +49,7 @@ Usage: consul acl auth-method <subcommand> [options] [args]
|
||||||
$ consul acl auth-method update -name "my-k8s" \
|
$ consul acl auth-method update -name "my-k8s" \
|
||||||
-description "new description" \
|
-description "new description" \
|
||||||
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/new-kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/new-kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
||||||
|
|
||||||
Read an auth method:
|
Read an auth method:
|
||||||
|
|
|
@ -269,6 +269,6 @@ Usage: consul acl auth-method create -name NAME -type TYPE [options]
|
||||||
-name "my-k8s" \
|
-name "my-k8s" \
|
||||||
-description "This is an example kube method" \
|
-description "This is an example kube method" \
|
||||||
-kubernetes-host "https://apiserver.example.com:8443" \
|
-kubernetes-host "https://apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
||||||
`
|
`
|
||||||
|
|
|
@ -333,6 +333,6 @@ Usage: consul acl auth-method update -name NAME [options]
|
||||||
$ consul acl auth-method update -name "my-k8s" \
|
$ consul acl auth-method update -name "my-k8s" \
|
||||||
-description "new description" \
|
-description "new description" \
|
||||||
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/new-kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/new-kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
||||||
`
|
`
|
||||||
|
|
|
@ -50,7 +50,7 @@ $ consul acl auth-method create -type "kubernetes" \
|
||||||
-name "my-k8s" \
|
-name "my-k8s" \
|
||||||
-description "This is an example kube auth method" \
|
-description "This is an example kube auth method" \
|
||||||
-kubernetes-host "https://apiserver.example.com:8443" \
|
-kubernetes-host "https://apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
-kubernetes-service-account-jwt "JWT_CONTENTS"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ Update all editable fields of the auth method:
|
||||||
$ consul acl auth-method update -name "my-k8s" \
|
$ consul acl auth-method update -name "my-k8s" \
|
||||||
-description "new description" \
|
-description "new description" \
|
||||||
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
-kubernetes-host "https://new-apiserver.example.com:8443" \
|
||||||
-kubernetes-ca-file /path/to/new-kube.ca.crt \
|
-kubernetes-ca-cert @/path/to/new-kube.ca.crt \
|
||||||
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
-kubernetes-service-account-jwt "NEW_JWT_CONTENTS"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue