k8s Deployments should have more useful names
Kubernetes Deployment components don't have any helpful identifying information in their names, so it's difficult for a human to distinguish between multiple deployments in a cluster. These are the deployments from deploying the hello-react-node-postgres starter to k8s:
pod/deployment-4d5a1a0c6cd89ab94f12ae09c0f30715-86f5789c6-b48mx 1/1 Running 0 5m41s
pod/deployment-6930b223f77ab98f8567f101ec2f32a0-7969f969bc-625n4 1/1 Running 0 7m14s
pod/deployment-b29a48e8e505fc93c46914963e72dc32-577454bbcd-nf9dt 1/1 Running 0 7m14s
pod/deployment-b59a971210f3051e735d76d4ebfdb950-6fc557bb6b-tv52g 1/1 Runni
However, the the Services from that same Adapt deployment have more helpful names:
service/nodeservice-netsvc-38c82c631f21cdae57122ff5ef2f2b92 ClusterIP 10.8.13.54 <none> 8080/TCP 9m39s
service/postgres-testpostgres-netsvc-223613de832f9c4977d5db96f5f18e22 ClusterIP 10.8.12.217 <none> 5432/TCP 9m39s
service/reactapp-netsvc-562accd23e9d3539505c53523e375d2e ClusterIP 10.8.11.246 <none> 80/TCP 9m39s
service/urlrouter-netsvc-7da9bba324af5ed2a23cb2cefb06894d LoadBala
I suggest using naming similar to how k8s.Service
and DockerContainer
generate their names, which I believe is based on props.key
.