zhengcanbin commented on a change in pull request #11233: [FLINK-16194][k8s]
Refactor the Kubernetes decorator design
URL: https://github.com/apache/flink/pull/11233#discussion_r386007422
##########
File path:
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/Fabric8FlinkKubeClient.java
##########
@@ -66,8 +70,52 @@ public Fabric8FlinkKubeClient(Configuration flinkConfig,
KubernetesClient client
}
@Override
- public void createTaskManagerPod(TaskManagerPodParameter parameter) {
- // todo
+ public void createJobManagerComponent(KubernetesJobManagerSpecification
kubernetesJMSpec) {
+ final Deployment deployment = kubernetesJMSpec.getDeployment();
+ final List<HasMetadata> accompanyingResources =
kubernetesJMSpec.getAccompanyingResources();
+
+ // create Deployment
+ LOG.debug("Start to create deployment with spec {}",
deployment.getSpec().toString());
+ final Deployment createdDeployment = this.internalClient
Review comment:
The deployment would never fail since the Kubernetes has strategies for such
a case:
1. Generally, the kubelet component helps retry pulling the missing
ConfigMap.
2. The controller helps re-deploy the Pod if strategy 1 fails.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services