Support multiple NodePorts, static NodePort mapping, and add 'replicas' spec option #913

Merged
telackey merged 4 commits from telackey/nodeports into main 2024-08-09 02:32:07 +00:00
Member

NodePort example:

network:
  ports:
    caddy:
     - 1234
     - 32020:2020

Replicas example:

replicas: 2

This also adds an optimization for k8s where if a directory matching the name of a configmap exists in beneath config/ in the stack, its contents will be copied into the corresponding configmap.

For example:

# Config files in the stack
❯ ls stack-orchestrator/config/caddyconfig
Caddyfile  Caddyfile.one-req-per-upstream-example

# ConfigMap in the spec
❯ cat foo.yml | grep config
...
configmaps:
  caddyconfig: ./configmaps/caddyconfig

# Create the deployment
❯ laconic-so --stack ~/cerc/caddy-ethcache/stack-orchestrator/stacks/caddy-ethcache deploy create --spec-file foo.yml

# The files from beneath config/<config_map_name> have been copied to the ConfigMap directory from the spec.
❯ ls deployment-001/configmaps/caddyconfig
Caddyfile  Caddyfile.one-req-per-upstream-example
NodePort example: ``` network: ports: caddy: - 1234 - 32020:2020 ``` Replicas example: ``` replicas: 2 ``` This also adds an optimization for k8s where if a directory matching the name of a configmap exists in beneath config/ in the stack, its contents will be copied into the corresponding configmap. For example: ``` # Config files in the stack ❯ ls stack-orchestrator/config/caddyconfig Caddyfile Caddyfile.one-req-per-upstream-example # ConfigMap in the spec ❯ cat foo.yml | grep config ... configmaps: caddyconfig: ./configmaps/caddyconfig # Create the deployment ❯ laconic-so --stack ~/cerc/caddy-ethcache/stack-orchestrator/stacks/caddy-ethcache deploy create --spec-file foo.yml # The files from beneath config/<config_map_name> have been copied to the ConfigMap directory from the spec. ❯ ls deployment-001/configmaps/caddyconfig Caddyfile Caddyfile.one-req-per-upstream-example ```
telackey added 1 commit 2024-08-08 20:14:01 +00:00
Multiple NodePorts and add replicas spec option
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 40s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m13s
Smoke Test / Run basic test suite (pull_request) Successful in 4m10s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m47s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m56s
46943d41a8
telackey requested review from dboreham 2024-08-08 20:14:40 +00:00
telackey added 1 commit 2024-08-08 21:37:52 +00:00
If a directory exists under config/ which matches the name of a configmap, copy it during create.
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 32s
Smoke Test / Run basic test suite (pull_request) Successful in 4m3s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m39s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m44s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m31s
21c61f9207
telackey added 1 commit 2024-08-08 21:41:21 +00:00
Debug line
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 39s
Smoke Test / Run basic test suite (pull_request) Successful in 4m6s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m6s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m42s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m41s
5c65f9c432
telackey added 1 commit 2024-08-08 22:36:55 +00:00
lint
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 37s
Smoke Test / Run basic test suite (pull_request) Successful in 4m15s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m35s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m55s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m47s
6b711a0cac
dboreham approved these changes 2024-08-08 22:56:08 +00:00
telackey merged commit 1def279d26 into main 2024-08-09 02:32:07 +00:00
telackey deleted branch telackey/nodeports 2024-08-09 02:32:08 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#913
No description provided.