Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eks/fargate: truncate stateful set name #386

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

rmfitzpatrick
Copy link
Contributor

@rmfitzpatrick rmfitzpatrick commented Feb 24, 2022

If installing with --generate-name the stateful set pod names will be too long for the statefulset.kubernetes.io/pod-name label value and lead to pod creation errors:

statefulset/splunk-otel-collector-1645717371-k8s-cluster-receiver   create Pod splunk-otel-collector-1645717371-k8s-cluster-receiver-0 in StatefulSet splunk-otel-collector-1645717371-k8s-cluster-receiver failed error: Pod "splunk-otel-collector-1645717371-k8s-cluster-receiver-0" is invalid: metadata.labels: Invalid value: "splunk-otel-collector-1645717371-k8s-cluster-receiver-7944b495c4": must be no more than 63 characters

These changes add an even more truncated name for the stateful set.

Appears related to kubernetes/kubernetes#64023, which went stale.

@rmfitzpatrick rmfitzpatrick requested review from a team as code owners February 24, 2022 15:55
@rmfitzpatrick rmfitzpatrick merged commit 72489e4 into main Feb 24, 2022
@rmfitzpatrick rmfitzpatrick deleted the eksstatefulsetnametruncation branch February 24, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants