@@ -383,15 +383,33 @@ type KubernetesSpec struct {
383
383
384
384
// Deployment is the configuration for the NGINX Deployment.
385
385
type DeploymentSpec struct {
386
+ // Number of desired Pods.
387
+ //
388
+ // +optional
389
+ Replicas * int32 `json:"replicas,omitempty"`
390
+
391
+ // Pod defines Pod-specific fields.
392
+ //
393
+ // +optional
394
+ Pod PodSpec `json:"pod"`
395
+
396
+ // Container defines container fields for the NGINX container.
397
+ //
398
+ // +optional
386
399
Container ContainerSpec `json:"container"`
387
- Replicas * int32 `json:"replicas,omitempty"`
388
- Pod PodSpec `json:"pod"`
389
400
}
390
401
391
402
// DaemonSet is the configuration for the NGINX DaemonSet.
392
403
type DaemonSetSpec struct {
404
+ // Pod defines Pod-specific fields.
405
+ //
406
+ // +optional
407
+ Pod PodSpec `json:"pod"`
408
+
409
+ // Container defines container fields for the NGINX container.
410
+ //
411
+ // +optional
393
412
Container ContainerSpec `json:"container"`
394
- Pod PodSpec `json:"pod"`
395
413
}
396
414
397
415
// PodSpec defines Pod-specific fields.
@@ -439,12 +457,37 @@ type PodSpec struct {
439
457
440
458
// ContainerSpec defines container fields for the NGINX container.
441
459
type ContainerSpec struct {
442
- Debug * bool `json:"debug,omitempty"`
443
- Image * Image `json:"image,omitempty"`
444
- Resources * corev1.ResourceRequirements `json:"resources,omitempty"`
445
- Lifecycle * corev1.Lifecycle `json:"lifecycle,omitempty"`
446
- HostPort * HostPort `json:"hostPort,omitempty"`
447
- VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
460
+ // Debug enables debugging for NGINX by using the nginx-debug binary.
461
+ //
462
+ // +optional
463
+ Debug * bool `json:"debug,omitempty"`
464
+
465
+ // Image is the NGINX image to use.
466
+ //
467
+ // +optional
468
+ Image * Image `json:"image,omitempty"`
469
+
470
+ // Resources describes the compute resource requirements.
471
+ //
472
+ // +optional
473
+ Resources * corev1.ResourceRequirements `json:"resources,omitempty"`
474
+
475
+ // Lifecycle describes actions that the management system should take in response to container lifecycle
476
+ // events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
477
+ // until the action is complete, unless the container process fails, in which case the handler is aborted.
478
+ //
479
+ // +optional
480
+ Lifecycle * corev1.Lifecycle `json:"lifecycle,omitempty"`
481
+
482
+ // HostPort configuration
483
+ //
484
+ // +optional
485
+ HostPort * HostPort `json:"hostPort,omitempty"`
486
+
487
+ // VolumeMounts describe the mounting of Volumes within a container.
488
+ //
489
+ // +optional
490
+ VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
448
491
}
449
492
450
493
// Image is the NGINX image to use.
0 commit comments