[ 
https://issues.apache.org/jira/browse/FLINK-15816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417129#comment-17417129
 ] 

Robert Metzger commented on FLINK-15816:
----------------------------------------

Oh, you are right!
I misread the error message. This is the original error I got:
{code}
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PUT 
at: 
https://172.20.0.1/api/v1/namespaces/robert/configmaps/1f68c84c-7c13-47fa-aa33-c799512f358c-troubleshoot-throughput0-fork0-resourcemanager-leader.
 Message: ConfigMap 
"1f68c84c-7c13-47fa-aa33-c799512f358c-troubleshoot-throughput0-fork0-resourcemanager-leader"
 is invalid: metadata.labels: Invalid value: 
"1f68c84c-7c13-47fa-aa33-c799512f358c-troubleshoot-throughput0-fork0": must be 
no more than 63 characters.
{code}
The problem is not the configmap name, but the label Flink is putting.

> Limit the maximum length of the value of kubernetes.cluster-id configuration 
> option
> -----------------------------------------------------------------------------------
>
>                 Key: FLINK-15816
>                 URL: https://issues.apache.org/jira/browse/FLINK-15816
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Deployment / Kubernetes
>    Affects Versions: 1.10.0, 1.14.1
>            Reporter: Canbin Zheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>         Attachments: image-2020-01-31-20-54-33-340.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Two Kubernetes Service will be created when a session cluster is deployed, 
> one is the internal Service and the other is the rest Service, we set the 
> internal Service name to the value of the _kubernetes.cluster-id_ 
> configuration option and then set the rest Service name to  
> _${kubernetes.cluster-id}_ with a suffix *-rest* appended, said if we set the 
> _kubernetes.cluster-id_ to *session-test*, then the internal Service name 
> will be *session-test* and the rest Service name be *session-test-rest;* 
> there is a constraint in Kubernetes that the Service name must be no more 
> than 63 characters, for the current naming convention it leads to that the 
> value of _kubernetes.cluster-id_ should not be more than 58 characters, 
> otherwise there are scenarios that the internal Service is created 
> successfully then comes up with a ClusterDeploymentException when trying to 
> create the rest Service.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to