Off The Shelf Application
In this workflow, all files are owned by the user and maintained in a repository under their control, but they are based on an off-the-shelf configuration that is periodically consulted for updates.
Following are the steps involved:
Clone it as your base
mkdir ~/ldap git clone https://github.com/$USER/ldap ~/ldap/base cd ~/ldap/base git remote add upstream firstname.lastname@example.org:$USER/ldap
As in the bespoke case above, create and populate an overlays directory.
mkdir -p ~/ldap/overlays/staging mkdir -p ~/ldap/overlays/production
The user can maintain the
overlaysdirectory in a distinct repository.
Bring up variants
kustomize build ~/ldap/overlays/staging | kubectl apply -f - kustomize build ~/ldap/overlays/production | kubectl apply -f -
kubectl apply -k ~/ldap/overlays/staging kubectl apply -k ~/ldap/overlays/production
(Optionally) Capture changes from upstream
cd ~/ldap/base git fetch upstream git rebase upstream/master
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.