Skip to content

Commit

Permalink
docs: missing NodePort service type description comment (#1401)
Browse files Browse the repository at this point in the history
* missing NodePort service type description commen

Signed-off-by: Shubham Chauhan <shubham@tetrate.io>
  • Loading branch information
chauhanshubham authored May 5, 2023
1 parent ea2a688 commit afdea0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion api/config/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ type KubernetesServiceSpec struct {
Annotations map[string]string `json:"annotations,omitempty"`

// Type determines how the Service is exposed. Defaults to LoadBalancer.
// Valid options are ClusterIP and LoadBalancer.
// Valid options are ClusterIP, LoadBalancer and NodePort.
// "LoadBalancer" means a service will be exposed via an external load balancer (if the cloud provider supports it).
// "ClusterIP" means a service will only be accessible inside the cluster, via the cluster IP.
// "NodePort" means a service will be exposed on a static Port on all Nodes of the cluster.
// +kubebuilder:default:="LoadBalancer"
// +optional
Type *ServiceType `json:"type,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,13 @@ spec:
type:
default: LoadBalancer
description: Type determines how the Service is exposed.
Defaults to LoadBalancer. Valid options are ClusterIP
and LoadBalancer. "LoadBalancer" means a service will
be exposed via an external load balancer (if the cloud
provider supports it). "ClusterIP" means a service will
only be accessible inside the cluster, via the cluster
IP.
Defaults to LoadBalancer. Valid options are ClusterIP,
LoadBalancer and NodePort. "LoadBalancer" means a service
will be exposed via an external load balancer (if the
cloud provider supports it). "ClusterIP" means a service
will only be accessible inside the cluster, via the
cluster IP. "NodePort" means a service will be exposed
on a static Port on all Nodes of the cluster.
enum:
- ClusterIP
- LoadBalancer
Expand Down
2 changes: 1 addition & 1 deletion docs/latest/api/config_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ _Appears in:_
| Field | Description |
| --- | --- |
| `annotations` _object (keys:string, values:string)_ | Annotations that should be appended to the service. By default, no annotations are appended. |
| `type` _[ServiceType](#servicetype)_ | Type determines how the Service is exposed. Defaults to LoadBalancer. Valid options are ClusterIP and LoadBalancer. "LoadBalancer" means a service will be exposed via an external load balancer (if the cloud provider supports it). "ClusterIP" means a service will only be accessible inside the cluster, via the cluster IP. |
| `type` _[ServiceType](#servicetype)_ | Type determines how the Service is exposed. Defaults to LoadBalancer. Valid options are ClusterIP, LoadBalancer and NodePort. "LoadBalancer" means a service will be exposed via an external load balancer (if the cloud provider supports it). "ClusterIP" means a service will only be accessible inside the cluster, via the cluster IP. "NodePort" means a service will be exposed on a static Port on all Nodes of the cluster. |


## LogComponent
Expand Down

0 comments on commit afdea0b

Please sign in to comment.