Skip to content

Commit

Permalink
Name containerPorts in pods
Browse files Browse the repository at this point in the history
This allows them to be used in prometheus serviceMonitor or podMonitor
CRDs. Fixes zalando#2247
  • Loading branch information
abh committed Sep 5, 2023
1 parent 781d17b commit 7a54d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cluster/k8sres.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,14 +658,17 @@ func generateContainer(
{
ContainerPort: patroni.ApiPort,
Protocol: v1.ProtocolTCP,
Name: "patroni",
},
{
ContainerPort: pgPort,
Protocol: v1.ProtocolTCP,
Name: "postgresql",
},
{
ContainerPort: operatorPort,
Protocol: v1.ProtocolTCP,
Name: "operator",
},
},
VolumeMounts: volumeMounts,
Expand Down

0 comments on commit 7a54d32

Please sign in to comment.