About NodePort Services
To implement this feature, the TimesTen Operator creates additional NodePort Services. The TimesTen Operator creates one Service for each Pod that the Operator creates.
For example, if you configure a TimesTenClassic object called sample
to have three Pods, the TimesTen Operator creates three NodePort Services called sample-np-0
, sample-np-1
, and sample-np-2
. Each Service maps to the corresponding Pod. For example, NodePort Service sample-np-1
maps to Pod sample-1
. Kubernetes deletes these Services when you delete a TimesTenClassic object.
Since these are NodePort Services, Kubernetes automatically assigns a port number on the cluster's external network that can be used by applications outside the cluster to access it. The port numbers that Kubernetes assigns are unpredictable. However, after creating NodePort Services, the TimesTen Operator can query the Service to see what external port number Kubernetes has assigned.