commit
76f41afe2e
|
|
@ -17,6 +17,8 @@ TUT_DIR=$HOME/kinflate_demo
|
|||
mkdir -p $TUT_DIR
|
||||
```
|
||||
|
||||
Download the app:
|
||||
|
||||
<!-- @downloadTutorialHelloApp @test -->
|
||||
```
|
||||
cd $TUT_DIR
|
||||
|
|
@ -24,20 +26,34 @@ git clone https://github.com/kinflate/tuthello
|
|||
cd tuthello
|
||||
```
|
||||
|
||||
Customize the base application by specifying a prefix that will be applied to
|
||||
all resource names:
|
||||
|
||||
<!-- @customizeApp @test -->
|
||||
```
|
||||
kinflate set nameprefix acme-
|
||||
```
|
||||
|
||||
Confirm that the edit happened:
|
||||
|
||||
<!-- @confirmEdit @test -->
|
||||
```
|
||||
grep namePrefix Kube-manifest.yaml
|
||||
grep --context=3 namePrefix Kube-manifest.yaml
|
||||
```
|
||||
|
||||
<!-- @applyToCluster @test -->
|
||||
Confirm that the prefix appears in the output:
|
||||
|
||||
<!-- @confirmResourceNames @test -->
|
||||
```
|
||||
kinflate inflate -f . | grep --context=3 acme-
|
||||
```
|
||||
|
||||
Optionally apply to a cluster:
|
||||
|
||||
<!-- @applyToCluster -->
|
||||
```
|
||||
kinflate inflate -f . | kubectl apply -f -
|
||||
```
|
||||
|
||||
This fork of the app repository could be
|
||||
committed to a private repo. Rebase as desired.
|
||||
This fork of the app repository could be committed to a private repo. Rebase as
|
||||
desired.
|
||||
|
|
|
|||
Loading…
Reference in New Issue