Overview
Deploying a Carvel package is similar to Helm where the default installation might not be suitable for your environment. In order to customize the installation we need to configure the values the package will use.
There are different mechanisms available in the spec including from; files, config maps and secrets.
In this example we will use a Secret.
NOTE: These steps depend on your having already completed the Package Author tutorial for the required files.
Define Values
- Edit and the
Secretwith values required for your application.
# Edit the secret
vim "${CARVEL_PACKAGE_HOME}/packages/${CARVEL_PACKAGE_NAME}.${CARVEL_PACKAGE_FQDN}/examples/Secret.yaml"
Do you use macOS? Why not contribute
the commands that you would run here…
Do you use Windows? Why not contribute
the commands that you would run here…
Apply Custom Resources
- Apply the
PackageRepository,SecretandPackageInstallcustom resources.
kubectl apply \
--filename "${CARVEL_PACKAGE_HOME}/packages/${CARVEL_PACKAGE_NAME}.${CARVEL_PACKAGE_FQDN}/examples/PackageInstall.yaml"
Do you use macOS? Why not contribute
the commands that you would run here…
Do you use Windows? Why not contribute
the commands that you would run here…
Verify
- Verify the installation
# Check the custom resources have reconciled.
kubectl get pkgr,pkg,pkgm,pkgi -n ${CARVEL_PACKAGE_NAMESPACE}
# Check the health of your app via usual methods.
kubectl get all -n ${APP_NAMESPACE}
Do you use macOS? Why not contribute
the commands that you would run here…
Do you use Windows? Why not contribute
the commands that you would run here…
- If there was an issue, it’s time to troubleshoot
