首先通过client-go配置集群访问凭证,使用kubeconfig或ServiceAccount获取config并创建clientset;接着定义Deployment对象,设置副本数、选择器和Pod...