Service IP
This module helps to retrieve the domain, IP, and ports of a Kubernetes service.
If service ends up being null, all the outputs of the module will be null as well.
If service is an headless service, the ip output will be null. You can use the host output to have the IP of the service if it exists, or the domain name of the service otherwise.
Requirements
Name |
Version |
|---|---|
>= 1.0 |
Providers
No providers.
Modules
No modules.
Resources
No resources.
Inputs
Name |
Description |
Type |
Default |
Required |
|---|---|---|---|---|
Internal domain name of the Kubernetes cluster |
|
|
no |
|
Service object |
|
n/a |
yes |
Outputs
Name |
Description |
|---|---|
Domain Name of the service |
|
Fully Qualified Domain Name (FQDN) of the service |
|
Either the IP or the FQDN of the service |
|
IP of the service |
|
Ports of the service |
|
Map of ports of the service with port name as key and exposed port number as value |