-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d9821f
commit 6baf2c3
Showing
1 changed file
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
``` | ||
ytt --ignore-unknown-comments -f yaml/values.yaml -f yaml/prep.yaml |kapp deploy -a namespace-prep -f- -y | ||
ytt --ignore-unknown-comments -f yaml/values.yaml -f yaml/deploy.yaml |kapp deploy -a deploy-test-app -f- -y | ||
kubectl get pods,secret,sa,ingress,svc -n test-app | ||
kapp deploy -a namespace-prep -f <(ytt --ignore-unknown-comments -f values.yaml -f prep.yaml) | ||
kapp deploy -a deploy-app -f <(ytt --ignore-unknown-comments -f values.yaml -f deploy.yaml) | ||
kubectl get pods,secret,sa,ingress,svc,pvc -n test-app | ||
cat <<EOF | kubectl apply -f - | ||
apiVersion: velero.io/v1 | ||
kind: Backup | ||
metadata: | ||
creationTimestamp: null | ||
name: test-app-backup-02 | ||
namespace: velero | ||
spec: | ||
hooks: {} | ||
storageLocation: gorkemo-minio-target | ||
includedNamespaces: | ||
- test-app | ||
ttl: 720h0m0s | ||
status: {} | ||
EOF | ||
kubectl delete ns test-app | ||
cat <<EOF | kubectl apply -f - | ||
apiVersion: velero.io/v1 | ||
kind: Restore | ||
metadata: | ||
creationTimestamp: null | ||
name: test-app-restore-02 | ||
namespace: velero | ||
spec: | ||
backupName: test-app-backup-02 | ||
includedNamespaces: | ||
- '*' | ||
status: {} | ||
EOF | ||
kubectl get pods,secret,sa,ingress,svc,pvc -n test-app | ||
``` |