Skip to content

Releases: ninech/nctl

v1.8.2

18 Dec 10:42
a5ab996
Compare
Choose a tag to compare

What's Changed

  • fix: add application alias by @ctrox in #193
  • feat: warn when setting project/org by @ctrox in #194
  • fix: improve create error logs by @ctrox in #195
  • fix: stats output app project by @ctrox in #196
  • auth login in non-interactive env should not block by @pawelkuc in #197

Full Changelog: v1.8.1...v1.8.2

v1.8.1

26 Nov 10:11
d3acd03
Compare
Choose a tag to compare

Changelog

This release fixes a few small bugs and makes some improvements to certain error messages.

What's Changed

  • do not show --api-cluster and --log-api-address by @thirdeyenick in #182
  • wrote if statement to simplfy the forbidden error by @SaadAssaf in #183
  • fix: app stats not showing replicas of failing releases by @ctrox in #188
  • feat: add hidden --all-namespaces flag by @ctrox in #190
  • use an absolute path for the launcher binary by @thirdeyenick in #189

Full Changelog: v1.8.0...v1.8.1

v1.8.0

23 Oct 14:06
48a18e5
Compare
Choose a tag to compare

This release contains a few new features for Deploio.

Worker Jobs

Worker jobs are separate processes which use the same image as the application, but with a different entry point. One common use-case is to start a task scheduler which executes tasks on a regular base.

Here's how you can add a worker job to an existing app:

nctl update app --worker-job-name=sidekiq --worker-job-command="bundle exec sidekiq"

See the docs for more details.

Application Stats

To get an overview of the app replicas, their status and resource usage you can use the -o stats flag for the nctl get app command.

$ nctl get app rails -o stats
PROJECT        NAME    REPLICA                  STATUS   CPU   CPU%   MEMORY   MEMORY%   RESTARTS   LASTEXITCODE
nine-staging   rails   rails-9f6bdb676-crlrf    ready    1m    0.8%   121MiB   47.4%     0          <none>
nine-staging   rails   rails-9f6bdb676-2pfps    ready    1m    0.8%   123MiB   48.4%     0          <none>
nine-staging   rails   rails-9f6bdb676-sd9mm    ready    1m    0.8%   122MiB   48.0%     1          137 (Out of memory)

If you have worker jobs defined, they will also show up here. The help output of nctl get app -h describes all the columns:

REPLICA: The name of the app replica.
STATUS: Current status of the replica.
CPU: Current CPU usage in millicores (1000m is a full CPU core).
CPU%: Current CPU usage relative to the app size. This can be over 100% as Deploio allows bursting.
MEMORY: Current Memory usage in MiB.
MEMORY%: Current Memory relative to the app size. This can be over 100% as Deploio allows bursting.
RESTARTS: The amount of times the replica has been restarted.
LASTEXITCODE: The exit code the last time the replica restarted. This can give an indication on why the replica is restarting.

Application Logs

The applications logs output has changed slightly to include certain labels in front of the log line to give some important context:

$ nctl logs app go
2024-10-22T16:07:55+02:00 {build="go-build-1", replica="go-build-1-build-pod"} Build successful
2024-10-22T16:07:59+02:00 {replica="go-59dcf7656f-9wr52"} 2024/10/22 14:07:59 starting HTTP server on :5678

This makes it clear, to which component each log line belongs to. There's also a new flag to filter by type (--type). See the newly added docs for more details and examples.

What's Changed

New Contributors

Full Changelog: v1.7.7...v1.8.0

v1.7.7

10 Oct 12:07
4863e34
Compare
Choose a tag to compare

Changelog

Most notably, the output of all get commands have changed with this release to always include the project column. Additionally, nctl get <resource-type> <resource-name> will now show a hint whenever a requested resource exists in another project than the currently active one.

What's Changed

  • adjust nctl output when searching for apps by @Nemat97 in #157
  • fix: print warning when deletion of kubeconfig fails by @ctrox in #174
  • feat: add cluster/vcluster aliases by @ctrox in #175
  • build(deps): bump github.com/charmbracelet/bubbles from 0.18.0 to 0.20.0 by @dependabot in #168
  • fix: release sort order by @ctrox in #176

Full Changelog: v1.7.6...v1.7.7

v1.7.6

03 Oct 07:29
9d1dfbe
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.7.5...v1.7.6

v1.7.5

18 Sep 13:32
c461d6e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.7.4...v1.7.5

v1.7.4

16 Sep 13:46
Compare
Choose a tag to compare

What's Changed

  • fix: debian/ubuntu install instructions 2 by @renepupil in #149
  • Improve Completion by @thde in #150
  • fix a panic with go 1.23 (pattern conflicts with pattern) by @thde

New Contributors

Full Changelog: v1.7.3...v1.7.4

v1.7.3

28 Aug 13:51
f7a529b
Compare
Choose a tag to compare

Changelog

We're moving Postgres and MySQL instances to their own machine types. Creating new databases or updating the machine type will require at least this version of nctl in the future:

Name vCPU RAM (GiB)
nine-db-xs 2 4
nine-db-s 4 8
nine-db-m 4 12
nine-db-l 6 16
nine-db-xl 8 24

What's Changed

  • fix: use default API cluster in autocomplete predictor by @ctrox in #147
  • build(deps): update apis by @thde in #148

Full Changelog: v1.7.2...v1.7.3

v1.7.2

28 Aug 08:09
035e6e3
Compare
Choose a tag to compare

Changelog

  • Add error handling for command-line arguments to prevent browser error pop-ups by @Nemat97 in #146

Full Changelog: v1.7.1...v1.7.2

v1.7.1

26 Aug 13:33
622c3f6
Compare
Choose a tag to compare

Changelog

Maintenance release with some fixes, refactorings and dependency updates.

New Contributors

Full Changelog

Commits: v1.7.0...v1.7.1

Fixes

Refactorings

Dependency Updates

  • build(deps): bump github.com/moby/moby from 26.0.0+incompatible to 27.1.1+incompatible by @dependabot in #136
  • build(deps): bump k8s.io/api from 0.30.1 to 0.30.3 by @dependabot in #137
  • build(deps): bump github.com/prometheus/common from 0.52.2 to 0.55.0 by @dependabot in #138
  • build(deps): bump github.com/docker/docker from 26.1.3+incompatible to 27.1.1+incompatible by @dependabot in #140
  • build(deps): bump k8s.io/apimachinery from 0.30.3 to 0.31.0 by @dependabot in #144
  • build(deps): update apis by @thde in #145