Skip to content

Commit

Permalink
Add node_ports outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohdan Tverdyi committed Oct 20, 2022
1 parent 4ad5c92 commit 452f94e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ module "service_jenkins_NP" {
See in example directory & variables.tf

## Outputs
| Name | Description |
|------|:-----------:|
| name | Name of the service |
| namespace | Namespace in which created the service |
| id | Kubernetes resource id |
| Name | Description |
|------------|:--------------------------------------:|
| name | Name of the service |
| namespace | Namespace in which created the service |
| id | Kubernetes resource id |
| node_ports | All Node Ports generated & entered |
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ output "name" {
}
output "namespace" {
value = kubernetes_service.service.metadata[0].namespace
}

# Ports
output "node_ports" {
value = kubernetes_service.service.spec[0].port[*].node_port
}

0 comments on commit 452f94e

Please sign in to comment.