TODO: Intro
- Install
gum
by following the instructions in https://github.com/charmbracelet/gum#installation. - Watch https://youtu.be/U8zCHA-9VLA if you are not familiar with Charm Gum.
chmod +x manuscript/app/carvel.sh
./manuscript/app/carvel.sh
source .env
cat $GITOPS_APP/cncf-demo-ytt.yaml
cp $GITOPS_APP/cncf-demo-ytt.yaml apps/cncf-demo.yaml
yq --inplace ".ingress.host = \"cncf-demo.$DOMAIN\"" \
ytt/values-prod.yaml
yq --inplace ".ingress.className = \"$INGRESS_CLASS_NAME\"" \
ytt/values-prod.yaml
cat ytt/values-prod.yaml
ytt --file ytt/schema.yaml --file ytt/resources \
--data-values-file ytt/values-prod.yaml \
| tee yaml/prod/app.yaml
git add .
git commit -m "cncf-demo v0.0.1"
git push
kubectl --namespace production get all,ingresses
# If you chose to use `nip.io` instead of a "real" domain,
# replace `https` with `http`.
echo "https://cncf-demo.$DOMAIN"
# Open it in a browser.