Upgrade from 0.6 to 0.7
Migrate PostgreSQL and certificates from 0.6 to 0.7. Verify that existing data and client identities survive.
What you’ll accomplish
Section titled “What you’ll accomplish”Upgrade the package with Unified Defense Stack (UDS) Core 1.16.0, migrate the existing PostgreSQL 15 volumes to PostgreSQL 18, and keep the deploy-time certificate authority (CA) and enrolled clients.
Prerequisites
Section titled “Prerequisites”- An existing 0.6 deployment and permission to upgrade its UDS bundle.
- The UDS command-line interface (CLI) and
kubectl, with the intended cluster context selected. - A tested recovery plan for both database volumes and certificate Secrets.
- A selected, signed 0.7 release, verified using Verify a release.
Before you begin
Section titled “Before you begin”Record the deployed versions, database persistent volume claim (PVC) names, CA fingerprint, and a known
database record. Arrange downtime: database migration and Team Awareness Kit (TAK) server restarts interrupt
clients. Snapshot both database volumes or export pg_dumpall from each
PostgreSQL 15 pod and keep the dumps outside the cluster. Preserve the original
certificate objects as described in Backup.
-
Upgrade UDS Core to 1.16.0 before the application, or include Core and TAK in one bundle that orders Core first. The Pepr module uses the controller image supplied by Core. Use the test bundle as an ordering reference and retain your deployment’s configuration.
-
Set the TAK package reference in your bundle to the selected
0.7.<patch>-upstreamrelease, with its keyless verification block. Keep existing PVCs and storage classes.FILESYSTEM_BACKUPdefaults tofalseandPOSTGRES_STORAGE_CLASSdefaults to empty; do not change the StatefulSet volume claim templates as part of this upgrade. -
Deploy the updated bundle through your normal signed bundle process. If Core has already been upgraded and the passthrough gateway is enabled, you can also deploy the package directly:
Deploy the selected 0.7 package VERSION=0.7.0 # Replace with the verified 0.7 patch selected for this upgrade.uds zarf package deploy "oci://ghcr.io/jonathanagustin/uds-takserver/takserver:${VERSION}-upstream" --confirmHistorical releases are mirrored in the current registry namespace with their original digests and signatures. See package migration.
Pass
--architecture amd64or--architecture arm64when the target differs from the deployment host. Each database pod runs its own migration on first start; its startup probe allows ten minutes for that first start. -
Wait for the database and TAK rollouts. Do not delete a PVC or interrupt a running
pg_upgradeto make the rollout faster. Read the database logs if a rollout stalls.
Verification
Section titled “Verification”Check both databases:
kubectl exec -n takserver takserver-postgresql-0 -- psql -U postgres -d cot -c 'SHOW server_version_num;' -c "SELECT extversion FROM pg_extension WHERE extname = 'postgis';"kubectl exec -n cloudtak cloudtak-postgis-0 -- psql -U cloudtak -d cloudtak -c 'SHOW server_version_num;' -c "SELECT extversion FROM pg_extension WHERE extname = 'postgis';"Expect PostgreSQL major version 18 and PostGIS 3.6. Confirm the PVC names and
known records are unchanged, then connect an enrolled client and sign in to
CloudTAK. The certificate Job moves private keys and keystores out of
cert-migration into Secrets takserver-certs and takserver-ca-key while
retaining the CA. An existing install retains its old keystore password; the
random password applies to new installs.
If dump CronJobs are enabled, their new dumps use key dump.sql.gz. The restore
helper still accepts a 0.6 Secret containing dump.sql.
Troubleshooting
Section titled “Troubleshooting”The database does not become ready
Section titled “The database does not become ready”Problem: A database rollout stops during migration.
Symptom: The database container exits or reports a failed pg_upgrade.
Solution: Read that container’s logs and preserve its volume. The entrypoint supports PostgreSQL 15 and 18 data directories only. Recover using the pre-upgrade snapshot or dump if the migration cannot complete; never start the PostgreSQL 15 image against data already written by PostgreSQL 18.
The Pepr module cannot start
Section titled “The Pepr module cannot start”Problem: The application upgraded before compatible Core components.
Symptom: The module cannot use its expected controller image.
Solution: Check Core was upgraded to 1.16.0 and that the bundle installs Core before TAK. Follow continuous integration (CI) workflows for the automated upgrade checks; the PostgreSQL 15 baseline job uses release 0.6.0 explicitly.