创建过程

1、kubectl创建deployment
2、deployment创建ReplicaSet
3、根据Replicaset创建pod

replicas的命名方式 :deployment名称+随机数
pod的命名方式:ReplicaSet名称+随机数

如下图:
image.png