commit
db4f95a37b
|
@ -82,12 +82,12 @@ secret "db-user-pass" created
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
Special characters such as `$`, `\`, `*`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping.
|
Special characters such as `$`, `\`, `*`, `=`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping.
|
||||||
In most shells, the easiest way to escape the password is to surround it with single quotes (`'`).
|
In most shells, the easiest way to escape the password is to surround it with single quotes (`'`).
|
||||||
For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way:
|
For example, if your actual password is `S!B\*d$zDsb=`, you should execute the command this way:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb'
|
kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb='
|
||||||
```
|
```
|
||||||
|
|
||||||
You do not need to escape special characters in passwords from files (`--from-file`).
|
You do not need to escape special characters in passwords from files (`--from-file`).
|
||||||
|
@ -974,12 +974,12 @@ secret "test-db-secret" created
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< note >}}
|
{{< note >}}
|
||||||
Special characters such as `$`, `\`, `*`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping.
|
Special characters such as `$`, `\`, `*`, `=`, and `!` will be interpreted by your [shell](https://en.wikipedia.org/wiki/Shell_(computing)) and require escaping.
|
||||||
In most shells, the easiest way to escape the password is to surround it with single quotes (`'`).
|
In most shells, the easiest way to escape the password is to surround it with single quotes (`'`).
|
||||||
For example, if your actual password is `S!B\*d$zDsb`, you should execute the command this way:
|
For example, if your actual password is `S!B\*d$zDsb=`, you should execute the command this way:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb'
|
kubectl create secret generic dev-db-secret --from-literal=username=devuser --from-literal=password='S!B\*d$zDsb='
|
||||||
```
|
```
|
||||||
|
|
||||||
You do not need to escape special characters in passwords from files (`--from-file`).
|
You do not need to escape special characters in passwords from files (`--from-file`).
|
||||||
|
|
Loading…
Reference in New Issue