NOS3#772& #664 docker compose + k8s (kubernetes)#810
Open
haisamido wants to merge 123 commits into
Open
Conversation
nasa:nos3:dev->haisamido:nos3:dev->haisamido:nos3:nos3#772-docker-compose
…orchestration Taskfile.yaml: - Removed 15 k8s variables (K8S_CONTEXT, K8S_NAMESPACE, K8S_BUILD_PATH, etc.) - Removed 25 k8s: tasks (generate, apply, delete, port-forward, etc.) - Added includes: block at bottom referencing targets/kubernetes/Taskfile.yaml with k8s: prefix - Passed only user-overridable vars (PROJECT, MISSION, SPACECRAFT, host ports) targets/kubernetes/Taskfile.yaml: - Merged tasks from both main Taskfile and existing k8s Taskfile into single file - Added k8s:up and k8s:down orchestration tasks mirroring compose up/down workflow - Added k8s:status, k8s:message, k8s:redeploy convenience tasks - Renamed hyphenated task names to colon-separated (e.g., create-namespace to create:namespace) - Updated all paths to be relative to deployments/ (via dir: . in include) - Added preconditions checking for .env existence before generate/convert tasks - Organized tasks into sections: Orchestration, Context/Runtime, User Management, Namespace, Kompose, Manifest Generation, Apply/Deploy, Delete/Cleanup, Inspection/Debugging, Port Forwarding, Lifecycle, Environment
Taskfile: - Appended /vnc.html to FortyTwo external and internal URLs in fortytwo:message task CryptoLib standalone: - Added #ifndef STANDALONE_TCP fallback define to standalone.c - Resolved build error when cloned repo Makefile does not pass -DSTANDALONE_TCP=1 to cmake
Helm Chart:
- Created full Helm chart with data-driven service registry (26 services)
- Added deployment-loop and service-loop templates (no per-service templates)
- Added DNS alias Services matching Docker Compose network aliases
- Added FortyTwo IPC ports (4227-9999) from Inp_IPC.txt for sim connectivity
- Added ConfigMap templates for entrypoints, sim config, NOS Engine, GSW, OpenMCT
- Added NetworkPolicy, Ingress, and Namespace templates (opt-in)
- Added values-minimum.yaml and values-nkp.yaml profiles
- Set STARTUP_FOLDER to NOS3InOut for correct 42 config directory
Taskfile:
- Added helm:build, helm:install, helm:up, helm:delete, helm:uninstall tasks
- Added helm:delete:all for bulk removal of all releases
- Added helm:port-forward with per-service and combined variants
- Added helm:port-forward:list, helm:port-forward:kill, helm:port-forward:kill:all
- Added helm:create-configs for FortyTwo InOut ConfigMap
- Separated helm:build from helm:install for parallel-safe deployments
- Fixed namespace formula to include spacecraft ({project}-{mission}-{spacecraft})
Mission Config:
- Changed gsw from cosmos to yamcs
- Updated start-time to 835082223
Test Script:
- Added Helm chart workflow examples (install, delete, port-forward, kill)
test.sh: - Removed mms3 install command (3 spacecraft exceeds single-node CPU capacity) - Removed mms3 port-forward command
… K8s lifecycle Deployments Taskfile: - Fixed build task description from "Build all containers" to "Build all images" - Added generate:env alias to env:generate task Compose: - Added image tag to nos3-openmct service so Compose auto-tags during build Kubernetes Taskfile: - Replaced duplicate helm:build:* per-service tasks with single delegation to main build task - Removed --wait --timeout 10m from helm install to prevent terminal blocking - Added helm:wait task with 5-second pod readiness polling and status feedback - Consolidated helm:uninstall aliases (helm:down, helm:stop, helm:delete) using Taskfile aliases clause - Removed standalone helm:delete task (now an alias) - Added port-forward command hint to helm:message output Helm values.yaml: - Fixed COMPONENT_DIR from empty string to /home/nos3/builds/nos3/components (matches Compose env.sh) - Disabled camsim, onair, and thruster-sim (enabled: false) as workaround for startup issues
Nos3#664 kubernetes k8s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are details about this branch here https://github.com/haisamido/nos3/blob/nos3%23772-docker-compose/deployments/README.md
But in summary you can follow these steps:
Closes #772
Closes #664