docs(offload): document network research and final configuration

This commit is contained in:
mkorwel
2026-03-16 20:03:42 -07:00
parent 7c66e7e427
commit 62b9b03962
4 changed files with 63 additions and 7 deletions
@@ -51,7 +51,7 @@ export class GceCosProvider implements WorkerProvider {
'--boot-disk-size', '200GB',
'--boot-disk-type', 'pd-balanced',
'--metadata', `startup-script=${startupScript},enable-oslogin=TRUE`,
'--network-interface', 'network-tier=PREMIUM,no-address',
'--network-interface', 'network=gcli-network,no-address',
'--scopes', 'https://www.googleapis.com/auth/cloud-platform'
], { stdio: 'inherit' });
@@ -73,11 +73,11 @@ export class GceCosProvider implements WorkerProvider {
}
async setup(options: SetupOptions): Promise<number> {
const dnsSuffix = options.dnsSuffix || '.internal';
const dnsSuffix = options.dnsSuffix || '.internal.gcpnode.com';
// Construct hostname. We attempt direct internal first.
// We've removed 'nic0' by default as it was reported as inconsistent.
const internalHostname = `${this.instanceName}.${this.zone}.c.${this.projectId}${dnsSuffix.startsWith('.') ? dnsSuffix : '.' + dnsSuffix}`;
// Construct hostname. Restoring verified corporate path requirements:
// MUST use 'nic0.' prefix and SHOULD default to '.internal.gcpnode.com'
const internalHostname = `nic0.${this.instanceName}.${this.zone}.c.${this.projectId}${dnsSuffix.startsWith('.') ? dnsSuffix : '.' + dnsSuffix}`;
const sshEntry = `
Host ${this.sshAlias}
@@ -10,7 +10,7 @@ import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const REPO_ROOT = path.resolve(__dirname, '../../../..');
const REPO_ROOT = path.resolve(__dirname, '../../../../..');
export class ProviderFactory {
static getProvider(config: { projectId: string; zone: string; instanceName: string }): WorkerProvider {