File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
site/book/06-deploying-packages Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 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:
2
14
3
15
``` shell
4
- $ kpt live apply wordpress
16
+ $ kpt live apply wordpress --reconcile-timeout=2m
5
17
installing inventory ResourceGroup CRD.
6
18
service/wordpress created
7
19
service/wordpress-mysql created
@@ -13,13 +25,6 @@ persistentvolumeclaim/wp-pv-claim created
13
25
0 resource(s) pruned, 0 skipped, 0 failed
14
26
```
15
27
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
-
23
28
?> Refer to the [ apply command reference] [ apply-doc ] for usage.
24
29
25
30
## ` ResourceGroup ` CRD
You can’t perform that action at this time.
0 commit comments