Releases: ninech/nctl
v1.8.2
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
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
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
- fix displaying of resource.Quantity sizes by @thirdeyenick in #177
- feat: add app stats output by @ctrox in #178
- feat: remove experimental ruby-heroku by @ctrox in #179
- feat: add worker jobs by @ctrox in #180
- Description for filename parameter. by @SaadAssaf in #181
New Contributors
- @SaadAssaf made their first contribution in #181
Full Changelog: v1.7.7...v1.8.0
v1.7.7
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
What's Changed
- build: add missing build variables by @thde in #165
- build: add docker image build for nctl by @thde in #166
- improve log and version displaying by @thirdeyenick in #167
- Fix resource listing and improve testing framework by @thirdeyenick in #171
Full Changelog: v1.7.5...v1.7.6
v1.7.5
What's Changed
- fix displaying of nctl version by @thirdeyenick in #162
- feat: database improvements by @thde in #163
- fix: brew completion by @thde in #161
- improve completion behaviour by @thirdeyenick in #164
Full Changelog: v1.7.4...v1.7.5
v1.7.4
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
- @renepupil made their first contribution in #149
Full Changelog: v1.7.3...v1.7.4
v1.7.3
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
Changelog
Full Changelog: v1.7.1...v1.7.2
v1.7.1
Changelog
Maintenance release with some fixes, refactorings and dependency updates.
New Contributors
- @matthiask made their first contribution in #141
Full Changelog
Commits: v1.7.0...v1.7.1
Fixes
- fix: ignore ErrCloseSent during log tail by @ctrox in #132
- fix: improve logbox interrupt handling by @ctrox in #133
- fix: use dynamic auth by default by @ctrox in #134
- fix get all command by @thirdeyenick in #135
- fix the update command with the language by @gajicdev in #142
- Fix a typo in whoami.go by @matthiask in #141
Refactorings
- refactor: default machine types by @olknegate in #143
- set the docker API version to 1.42 by @Nemat97 in #122
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