Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.12 KB

carvel.md

File metadata and controls

54 lines (33 loc) · 1.12 KB

Deploy The App Defined As Carvel ytt To Production With GitOps

TODO: Intro

Setup

chmod +x manuscript/app/carvel.sh

./manuscript/app/carvel.sh

source .env

Do

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.

Continue The Adventure