Skip to content

Commit 866df72

Browse files
authored
doc: Create secret for wordpress package (#2380)
1 parent f73e2d6 commit 866df72

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

site/book/06-deploying-packages/02-applying-a-package.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
Once you have initialized the package, you can deploy it using `live apply`:
1+
Once you have initialized the package, you can deploy it using `live apply`.
2+
3+
The `wordpress` package requires a `Secret` containing the mysql password.
4+
Let's create that first:
5+
6+
```shell
7+
$ kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD
8+
```
9+
10+
!> You can also declare the `Secret` resource, but make sure it is not commited to
11+
Git as part of the package.
12+
13+
Then deploy the package and wait for the resources to be reconciled:
214

315
```shell
4-
$ kpt live apply wordpress
16+
$ kpt live apply wordpress --reconcile-timeout=2m
517
installing inventory ResourceGroup CRD.
618
service/wordpress created
719
service/wordpress-mysql created
@@ -13,13 +25,6 @@ persistentvolumeclaim/wp-pv-claim created
1325
0 resource(s) pruned, 0 skipped, 0 failed
1426
```
1527

16-
Alternatively, you can specify whether you want to wait for resources to be
17-
reconciled:
18-
19-
```shell
20-
$ kpt live apply wordpress --reconcile-timeout=2m
21-
```
22-
2328
?> Refer to the [apply command reference][apply-doc] for usage.
2429

2530
## `ResourceGroup` CRD

0 commit comments

Comments
 (0)