-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add zarf resource adoption tutorial (#1691)
## Description Adds a tutorial to show the zarf resource adoption feature from v0.26.1 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --------- Co-authored-by: Wayne Starr <[email protected]> Co-authored-by: Otto Kekäläinen <[email protected]>
- Loading branch information
1 parent
dd16181
commit 95777d0
Showing
10 changed files
with
671 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
docs-website/static/docs/tutorials/resource_adoption_adopted.html
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body {background-color: black;} | ||
pre { | ||
font-weight: normal; | ||
color: #bbb; | ||
white-space: -moz-pre-wrap; | ||
white-space: -o-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
} | ||
b {font-weight: normal} | ||
b.BOLD {color: #fff} | ||
b.ITA {font-style: italic} | ||
b.UND {text-decoration: underline} | ||
b.STR {text-decoration: line-through} | ||
b.UNDSTR {text-decoration: underline line-through} | ||
b.BLK {color: #000000} | ||
b.RED {color: #aa0000} | ||
b.GRN {color: #00aa00} | ||
b.YEL {color: #aa5500} | ||
b.BLU {color: #0000aa} | ||
b.MAG {color: #aa00aa} | ||
b.CYN {color: #00aaaa} | ||
b.WHI {color: #aaaaaa} | ||
b.HIK {color: #555555} | ||
b.HIR {color: #ff5555} | ||
b.HIG {color: #55ff55} | ||
b.HIY {color: #ffff55} | ||
b.HIB {color: #5555ff} | ||
b.HIM {color: #ff55ff} | ||
b.HIC {color: #55ffff} | ||
b.HIW {color: #ffffff} | ||
b.BBLK {background-color: #000000} | ||
b.BRED {background-color: #aa0000} | ||
b.BGRN {background-color: #00aa00} | ||
b.BYEL {background-color: #aa5500} | ||
b.BBLU {background-color: #0000aa} | ||
b.BMAG {background-color: #aa00aa} | ||
b.BCYN {background-color: #00aaaa} | ||
b.BWHI {background-color: #aaaaaa} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<b class="WHI">$ kubectl describe namespaces dos-games</b> | ||
Name: dos-games | ||
Labels: app.kubernetes.io/managed-by=zarf | ||
kubernetes.io/metadata.name=dos-games | ||
|
||
Annotations: <none> | ||
Status: Active | ||
|
||
No resource quota. | ||
|
||
No LimitRange resource. | ||
</pre> | ||
</body> | ||
</html> |
58 changes: 58 additions & 0 deletions
58
docs-website/static/docs/tutorials/resource_adoption_connect.html
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body {background-color: black;} | ||
pre { | ||
font-weight: normal; | ||
color: #bbb; | ||
white-space: -moz-pre-wrap; | ||
white-space: -o-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
} | ||
b {font-weight: normal} | ||
b.BOLD {color: #fff} | ||
b.ITA {font-style: italic} | ||
b.UND {text-decoration: underline} | ||
b.STR {text-decoration: line-through} | ||
b.UNDSTR {text-decoration: underline line-through} | ||
b.BLK {color: #000000} | ||
b.RED {color: #aa0000} | ||
b.GRN {color: #00aa00} | ||
b.YEL {color: #aa5500} | ||
b.BLU {color: #0000aa} | ||
b.MAG {color: #aa00aa} | ||
b.CYN {color: #00aaaa} | ||
b.WHI {color: #aaaaaa} | ||
b.HIK {color: #555555} | ||
b.HIR {color: #ff5555} | ||
b.HIG {color: #55ff55} | ||
b.HIY {color: #ffff55} | ||
b.HIB {color: #5555ff} | ||
b.HIM {color: #ff55ff} | ||
b.HIC {color: #55ffff} | ||
b.HIW {color: #ffffff} | ||
b.BBLK {background-color: #000000} | ||
b.BRED {background-color: #aa0000} | ||
b.BGRN {background-color: #00aa00} | ||
b.BYEL {background-color: #aa5500} | ||
b.BBLU {background-color: #0000aa} | ||
b.BMAG {background-color: #aa00aa} | ||
b.BCYN {background-color: #00aaaa} | ||
b.BWHI {background-color: #aaaaaa} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<b class="WHI">$ zarf package connect games</b> | ||
|
||
<b class="YEL">Saving log file to | ||
/var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-2023-05-10-12-02-03-3555041969.log</b> | ||
• <b style="color:#55ffff;">Preparing a tunnel to connect to games</b> | ||
<b class="WHI">http://127.0.0.1:60064^C%</b> | ||
</pre> | ||
</body> | ||
</html> |
125 changes: 125 additions & 0 deletions
125
docs-website/static/docs/tutorials/resource_adoption_deploy.html
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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body {background-color: black;} | ||
pre { | ||
font-weight: normal; | ||
color: #bbb; | ||
white-space: -moz-pre-wrap; | ||
white-space: -o-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
} | ||
b {font-weight: normal} | ||
b.BOLD {color: #fff} | ||
b.ITA {font-style: italic} | ||
b.UND {text-decoration: underline} | ||
b.STR {text-decoration: line-through} | ||
b.UNDSTR {text-decoration: underline line-through} | ||
b.BLK {color: #000000} | ||
b.RED {color: #aa0000} | ||
b.GRN {color: #00aa00} | ||
b.YEL {color: #aa5500} | ||
b.BLU {color: #0000aa} | ||
b.MAG {color: #aa00aa} | ||
b.CYN {color: #00aaaa} | ||
b.WHI {color: #aaaaaa} | ||
b.HIK {color: #555555} | ||
b.HIR {color: #ff5555} | ||
b.HIG {color: #55ff55} | ||
b.HIY {color: #ffff55} | ||
b.HIB {color: #5555ff} | ||
b.HIM {color: #ff55ff} | ||
b.HIC {color: #55ffff} | ||
b.HIW {color: #ffffff} | ||
b.BBLK {background-color: #000000} | ||
b.BRED {background-color: #aa0000} | ||
b.BGRN {background-color: #00aa00} | ||
b.BYEL {background-color: #aa5500} | ||
b.BBLU {background-color: #0000aa} | ||
b.BMAG {background-color: #aa00aa} | ||
b.BCYN {background-color: #00aaaa} | ||
b.BWHI {background-color: #aaaaaa} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<b class="WHI">$ zarf package deploy --adopt-existing-resources sget://defenseunicorns/zarf-hello-world:$(uname -m) --confirm</b> | ||
<b class=YEL>Saving log file to</b> | ||
<b class=YEL>/var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-2023-03-23-10-20-59-1265818177.log</b> | ||
<b class=YEL></b> • <b style="color:#55ffff;"></b><b style="color:#55ffff;">Loading Zarf Package sget://defenseunicorns/zarf-hello-world:$(uname -m)</b> | ||
<b style="color:#55ffff;"></b><b style="color:#55ffff;">Loading Zarf Package sget://defenseunicorns/zarf-hello-world:$(uname -m)</b> | ||
|
||
|
||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
|
||
<b style="color:#55ffff;">kind</b>:<b style="color:#ff55ff;"> ZarfPackageConfig</b> | ||
<b style="color:#ff55ff;"></b><b style="color:#55ffff;">metadata</b>:<b style="color:#55ffff;"></b> | ||
<b style="color:#55ffff;"> name</b>:<b style="color:#ff55ff;"> dos-games</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">description</b>:<b style="color:#ff55ff;"> Simple example to load classic DOS games into K8s in the airgap</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">architecture</b>:<b style="color:#ff55ff;"> arm64</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">aggregateChecksum</b>:<b style="color:#ff55ff;"> ec858bf64904388ac3b0561fe9958e5811c7543ef7736c7eb760029d6f76c8ee</b> | ||
<b style="color:#ff55ff;"></b><b style="color:#55ffff;">build</b>:<b style="color:#55ffff;"></b> | ||
<b style="color:#55ffff;"> terminal</b>:<b style="color:#ff55ff;"> JvBUnicornMBP5</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">user</b>:<b style="color:#ff55ff;"> jason</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">architecture</b>:<b style="color:#ff55ff;"> arm64</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">timestamp</b>:<b style="color:#ff55ff;"> Wed, 10 May 2023 11:24:27 -0400</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">version</b>:<b style="color:#ff55ff;"> v0.26.2</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">migrations</b>: | ||
-<b style="color:#ff55ff;"> scripts-to-actions</b> | ||
<b style="color:#ff55ff;"> </b>-<b style="color:#ff55ff;"> pluralize-set-variable</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">differential</b>:<b style="color:#ffffff;"> false</b> | ||
<b style="color:#ffffff;"></b><b style="color:#55ffff;">components</b>: | ||
-<b style="color:#55ffff;"> name</b>:<b style="color:#ff55ff;"> baseline</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">required</b>:<b style="color:#ffffff;"> true</b> | ||
<b style="color:#ffffff;"> </b><b style="color:#55ffff;">manifests</b>: | ||
-<b style="color:#55ffff;"> name</b>:<b style="color:#ff55ff;"> multi-games</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">namespace</b>:<b style="color:#ff55ff;"> dos-games</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">files</b>: | ||
-<b style="color:#ff55ff;"> manifests/deployment.yaml</b> | ||
<b style="color:#ff55ff;"> </b>-<b style="color:#ff55ff;"> manifests/service.yaml</b> | ||
<b style="color:#ff55ff;"> </b><b style="color:#55ffff;">images</b>: | ||
-<b style="color:#ff55ff;"> defenseunicorns/zarf-game:multi-tile-dark</b> | ||
|
||
<b class=YEL>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> | ||
<b class=YEL></b> | ||
<b class=YEL>This package has 1 artifacts with software bill-of-materials (SBOM) included. You can view them now</b> | ||
<b class=YEL>in the zarf-sbom folder in this directory or to go directly to one, open this in your browser:</b> | ||
<b class=YEL></b><b class=WHI></b><b class=HIW>/Users/jason/src/github.com/defenseunicorns/zarf/zarf-sbom/sbom-viewer-defenseunicorns_zarf-game_multi-tile-dark.html</b><b class=YEL></b><b class=WHI></b><b class=YEL></b> | ||
<b class=YEL></b> | ||
<b class=YEL>* This directory will be removed after package deployment.</b> | ||
<b class=YEL></b> | ||
<b class=YEL>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> | ||
<b class=YEL></b><b style="color:#55ff55;"></b><b style="color:#55ff55;"> ✔ </b> <b style="color:#55ff55;"></b><b style="color:#55ff55;">Deploy Zarf package confirmed</b> | ||
|
||
<div style="background-color:#555555"> | ||
<b style="background-color:#555555"></b><b style="background-color:#555555"> </b> | ||
<b style="background-color:#555555"></b><b style="background-color:#555555"></b><b style="color:#ffffff;background-color:#555555"></b><b style="color:#ffffff;background-color:#555555"> 📦 BASELINE COMPONENT </b><b style="background-color:#555555"></b><b style="background-color:#555555"></b> | ||
<b style="background-color:#555555"></b><b style="background-color:#555555"></b><b style="color:#ffffff;background-color:#555555"></b><b style="color:#ffffff;background-color:#555555"> </b><b style="background-color:#555555"></b><b style="background-color:#555555"></b> | ||
<b style="background-color:#555555"></b><b style="background-color:#555555"> </b> | ||
</div> | ||
|
||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Waiting for cluster connection (30s timeout)</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Waiting for cluster connection (30s timeout)</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Loading the Zarf State from the Kubernetes cluster</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Loading the Zarf State from the Kubernetes cluster</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Pushing 1 images to the zarf registry</b> | ||
<b style="color:#55ff55;"></b><b style="color:#55ff55;"> ✔ </b> <b style="color:#55ff55;"></b><b style="color:#55ff55;">Pushed 1 images to the zarf registry</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Starting helm chart generation multi-games</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Starting helm chart generation multi-games</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Processing helm chart raw-dos-games-baseline-multi-games:0.1.1683732591 from Zarf-generated helm</b> | ||
<b style="color:#55ffff;"></b><b style="color:#55ffff;">chart</b> | ||
• <b style="color:#55ffff;"></b><b style="color:#55ffff;">Processing helm chart raw-dos-games-baseline-multi-games:0.1.1683732591 from Zarf-generated helm</b> | ||
<b style="color:#55ffff;"></b><b style="color:#55ffff;">chart</b> | ||
<b style="color:#55ff55;"></b><b style="color:#55ff55;"> ✔ </b> <b style="color:#55ff55;"></b><b style="color:#55ff55;">Zarf deployment complete</b> | ||
|
||
<b style="color:#55ffff;"></b><b style="color:#55ffff;">Connect Command </b><b style="color:#555555;"></b><b style="color:#555555;"> | </b><b style="color:#55ffff;"></b><b style="color:#55ffff;">Description</b> | ||
<b style="color:#55ffff;"></b>zarf connect doom <b style="color:#555555;"></b><b style="color:#555555;"> | </b>Play doom!!! | ||
zarf connect games<b style="color:#555555;"></b><b style="color:#555555;"> | </b>Play some old dos games 🦄 | ||
|
||
</pre> | ||
</body> | ||
</html> |
56 changes: 56 additions & 0 deletions
56
docs-website/static/docs/tutorials/resource_adoption_forward.html
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body {background-color: black;} | ||
pre { | ||
font-weight: normal; | ||
color: #bbb; | ||
white-space: -moz-pre-wrap; | ||
white-space: -o-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
} | ||
b {font-weight: normal} | ||
b.BOLD {color: #fff} | ||
b.ITA {font-style: italic} | ||
b.UND {text-decoration: underline} | ||
b.STR {text-decoration: line-through} | ||
b.UNDSTR {text-decoration: underline line-through} | ||
b.BLK {color: #000000} | ||
b.RED {color: #aa0000} | ||
b.GRN {color: #00aa00} | ||
b.YEL {color: #aa5500} | ||
b.BLU {color: #0000aa} | ||
b.MAG {color: #aa00aa} | ||
b.CYN {color: #00aaaa} | ||
b.WHI {color: #aaaaaa} | ||
b.HIK {color: #555555} | ||
b.HIR {color: #ff5555} | ||
b.HIG {color: #55ff55} | ||
b.HIY {color: #ffff55} | ||
b.HIB {color: #5555ff} | ||
b.HIM {color: #ff55ff} | ||
b.HIC {color: #55ffff} | ||
b.HIW {color: #ffffff} | ||
b.BBLK {background-color: #000000} | ||
b.BRED {background-color: #aa0000} | ||
b.BGRN {background-color: #00aa00} | ||
b.BYEL {background-color: #aa5500} | ||
b.BBLU {background-color: #0000aa} | ||
b.BMAG {background-color: #aa00aa} | ||
b.BCYN {background-color: #00aaaa} | ||
b.BWHI {background-color: #aaaaaa} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<b class="WHI">$ kubectl port-forward services/game 8000:8000 -n dos-games</b> | ||
Forwarding from 127.0.0.1:8000 -> 8000 | ||
Forwarding from [::1]:8000 -> 8000 | ||
^C% | ||
</pre> | ||
</body> | ||
</html> |
62 changes: 62 additions & 0 deletions
62
docs-website/static/docs/tutorials/resource_adoption_ignored.html
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body {background-color: black;} | ||
pre { | ||
font-weight: normal; | ||
color: #bbb; | ||
white-space: -moz-pre-wrap; | ||
white-space: -o-pre-wrap; | ||
white-space: -pre-wrap; | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
overflow-wrap: break-word; | ||
} | ||
b {font-weight: normal} | ||
b.BOLD {color: #fff} | ||
b.ITA {font-style: italic} | ||
b.UND {text-decoration: underline} | ||
b.STR {text-decoration: line-through} | ||
b.UNDSTR {text-decoration: underline line-through} | ||
b.BLK {color: #000000} | ||
b.RED {color: #aa0000} | ||
b.GRN {color: #00aa00} | ||
b.YEL {color: #aa5500} | ||
b.BLU {color: #0000aa} | ||
b.MAG {color: #aa00aa} | ||
b.CYN {color: #00aaaa} | ||
b.WHI {color: #aaaaaa} | ||
b.HIK {color: #555555} | ||
b.HIR {color: #ff5555} | ||
b.HIG {color: #55ff55} | ||
b.HIY {color: #ffff55} | ||
b.HIB {color: #5555ff} | ||
b.HIM {color: #ff55ff} | ||
b.HIC {color: #55ffff} | ||
b.HIW {color: #ffffff} | ||
b.BBLK {background-color: #000000} | ||
b.BRED {background-color: #aa0000} | ||
b.BGRN {background-color: #00aa00} | ||
b.BYEL {background-color: #aa5500} | ||
b.BBLU {background-color: #0000aa} | ||
b.BMAG {background-color: #aa00aa} | ||
b.BCYN {background-color: #00aaaa} | ||
b.BWHI {background-color: #aaaaaa} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<b class="WHI">$ kubectl describe namespaces dos-games</b> | ||
Name: dos-games | ||
Labels: kubernetes.io/metadata.name=dos-games | ||
zarf.dev/agent=ignore | ||
Annotations: <none> | ||
Status: Active | ||
|
||
No resource quota. | ||
|
||
No LimitRange resource. | ||
</pre> | ||
</body> | ||
</html> |
Oops, something went wrong.