Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit e39cbe0

Browse files
committed
add new flags from #4619 to upgrade command
1 parent 8c14a12 commit e39cbe0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

internal/serverinstall/nomad.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,13 @@ func (i *NomadInstaller) UpgradeFlags(set *flag.Set) {
14591459
Usage: "Namespace to install the Waypoint server into for Nomad.",
14601460
})
14611461

1462+
set.StringVar(&flag.StringVar{
1463+
Name: "nomad-network-mode",
1464+
Target: &i.config.networkMode,
1465+
Usage: "Nomad task group network mode.",
1466+
Default: "host",
1467+
})
1468+
14621469
set.StringVar(&flag.StringVar{
14631470
Name: "nomad-odr-image",
14641471
Target: &i.config.odrImage,
@@ -1494,6 +1501,12 @@ func (i *NomadInstaller) UpgradeFlags(set *flag.Set) {
14941501
Default: strconv.Itoa(defaultResourcesMemory),
14951502
})
14961503

1504+
set.StringVar(&flag.StringVar{
1505+
Name: "nomad-service-address",
1506+
Target: &i.config.serviceAddress,
1507+
Usage: "Address for the Nomad services.",
1508+
})
1509+
14971510
set.StringVar(&flag.StringVar{
14981511
Name: "nomad-runner-cpu",
14991512
Target: &i.config.runnerResourcesCPU,

website/content/commands/server-upgrade.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ manually installed runners will not be automatically upgraded.
7777
- `-nomad-dc=<string>` - Datacenters to install to for Nomad. The default is dc1.
7878
- `-nomad-host=<string>` - Hostname of the Nomad server to use, like for launching on-demand tasks. The default is http://localhost:4646.
7979
- `-nomad-namespace=<string>` - Namespace to install the Waypoint server into for Nomad. The default is default.
80+
- `-nomad-network-mode=<string>` - Nomad task group network mode. The default is host.
8081
- `-nomad-odr-image=<string>` - Docker image for the on-demand runners. If not specified, it defaults to the server image name + '-odr' (i.e. 'hashicorp/waypoint-odr:latest').
8182
- `-nomad-policy-override` - Override the Nomad sentinel policy for enterprise Nomad. The default is false.
8283
- `-nomad-region=<string>` - Region to install to for Nomad. The default is global.
8384
- `-nomad-server-cpu=<string>` - CPU required to run this task in MHz. The default is 200.
8485
- `-nomad-server-memory=<string>` - MB of Memory to allocate to the server job task. The default is 600.
86+
- `-nomad-service-address=<string>` - Address for the Nomad services.
8587
- `-nomad-runner-cpu=<string>` - CPU required to run this task in MHz. The default is 200.
8688
- `-nomad-runner-memory=<string>` - MB of Memory to allocate to the runner job task. The default is 600.
8789
- `-nomad-runner-host-volume=<string>` - Name of the host volume to use for the Waypoint runner.

0 commit comments

Comments
 (0)