You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("--mount-options is currently only supported for GCS fuse volumes (gs://...)")
132
+
}
133
+
}
134
+
}
135
+
128
136
returnnil
129
137
},
130
138
SilenceUsage: true,
@@ -140,6 +148,7 @@ func init() {
140
148
SubmitCmd.Flags().StringVarP(&platform, "platform", "f", "linux/amd64", "Target platform for the image build (e.g., 'linux/amd64', 'linux/arm64'). Used with --base-image.")
141
149
142
150
SubmitCmd.Flags().StringSliceVar(&volumeStr, "mount", nil, "Volumes to mount (format: <src>:<dest>[:<mode>], mode can be 'ro' or 'rw', default 'ro').")
151
+
SubmitCmd.Flags().StringVar(&mountOptions, "mount-options", "", "Mount options for all volumes (currently only supported for GCS fuse volumes, e.g., 'logging:severity:info,enable-atomic-rename-object:true').")
143
152
SubmitCmd.Flags().StringArrayVar(&envVars, "env", []string{}, "Custom environment variables to pass to the workload container in KEY=VALUE format. Can be specified multiple times.")
144
153
145
154
SubmitCmd.Flags().StringVarP(&workloadName, "name", "n", "", "Name of the workload to create. Required.")
@@ -165,7 +174,6 @@ func init() {
165
174
SubmitCmd.Flags().BoolVar(&verbose, "verbose", false, "Enable verbose logging for the workload (TPUs and GPUs).")
166
175
SubmitCmd.Flags().StringVar(&gkeNapProvisioning, "gke-nap-provisioning", "", "Compute provisioning model for GKE NAP. Allowed values: on-demand, spot, reservation.")
167
176
SubmitCmd.Flags().StringVar(&gkeNapReservation, "gke-nap-reservation", "", "Name of the Google Cloud Reservation for GKE NAP (required if --gke-nap-provisioning=reservation).")
168
-
SubmitCmd.Flags().StringVar(&gcsfuseMountOptions, "gcsfuse-mount-options", "", "GCSFuse mount options for all GCS mounts (e.g., 'logging:severity:info,enable-atomic-rename-object:true').")
169
177
170
178
SubmitCmd.Flags().BoolVar(&isPathwaysJob, "pathways", false, "If present, gcluster will generate a manifest for a Pathways job.")
171
179
SubmitCmd.Flags().StringVar(&pathways.ProxyServerImage, "pathways-proxy-server-image", "", "The image for the Pathways proxy server.")
Mounting an existing PVC named `lustre-pvc` (read-only):
@@ -1095,6 +1098,7 @@ The `gcluster job submit` command deploys a container image as a job (Kubernetes
1095
1098
| `--num-nodes` | `int` | Number of nodes to use per group/slice (Default: `1`). Auto-calculated for TPUs based on topology. |
1096
1099
| `--restarts` | `int` | Maximum number of restarts allowed for the JobSet before marked as failed (Default: `1`). |
1097
1100
| `--mount` | `stringArray` | Mount storage volumes, buckets, filestore instances, or PVCs using the `<src>:<dest>[:<mode>]` format. Examples of `<src>`: `gs://my-bucket`, `filestore://my-instance/share`, `my-pvc` (for Lustre/etc), or `/host/path`. |
1101
+
| `--mount-options` | `string` | Custom mount options for attached volumes (currently only supported for GCS fuse volumes, e.g., `logging:severity:info,enable-atomic-rename-object:true`). |
1098
1102
| `--env` | `stringArray` | Custom environment variables to pass exclusively to the user's workload container in KEY=VALUE format (e.g. `--env KEY=VALUE`). Applies to both standard and Pathways workloads. Can be specified multiple times. |
1099
1103
|`--await-job-completion`|`bool`| If true, the CLI waits for the job to complete before exiting. |
1100
1104
|`--timeout`|`string`| Time to waitfor job completion (e.g., `1h`, `10m`). Used with `--await-job-completion`. |
0 commit comments