Skip to content

Conversation

shreyaskm623
Copy link
Contributor

@shreyaskm623 shreyaskm623 commented Aug 4, 2025

This commit updates the Kubernetes deployment manifests by removing deprecated APIs, enhancing security with IMDSv2, improving ARM compatibility, and cleaning up legacy files.

Key changes:

  • Update PodDisruptionBudget API from policy/v1beta1 to policy/v1
  • Replace byrnedo/alpine-curl:0.1 with 3.20 for ARM64 support
  • Implement IMDSv2 for secure AWS metadata access in EKS deployments
  • Remove deprecated v1.6 and v1.7 directories (22 legacy files)
  • Regenerate all manifest files from updated templates

Release notes: none

Epic: CRDB-49252

Copy link

blathers-crl bot commented Aug 4, 2025

Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@shreyaskm623 shreyaskm623 force-pushed the k8s_manifests_refactor branch 4 times, most recently from 24331cb to 4a21e3d Compare August 8, 2025 06:34
@shreyaskm623 shreyaskm623 marked this pull request as ready for review August 8, 2025 06:35
@shreyaskm623 shreyaskm623 force-pushed the k8s_manifests_refactor branch from 4a21e3d to 0437332 Compare August 8, 2025 06:41
version of Kubernetes, use the files from the appropriate subdirectory (e.g. the
`v1.7` directory for Kubernetes 1.7 or the `v1.6` directory for Kubernetes 1.6).
`v1.20` directory for Kubernetes 1.7).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`v1.20` directory for Kubernetes 1.7).
`v1.20` directory for Kubernetes 1.20).

# TODO: Change these to appropriate values for the hardware that you're running. You can see
# the resources that can be allocated on each of your Kubernetes nodes by running:
# kubectl describe nodes
# Note that requests and limits should have identical values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required? Is it mentioned somewhere in docs or other examples?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe we can modify it as recommended as mentioned here

@@ -191,11 +196,38 @@ spec:
- name: cockroachdb
image: cockroachdb/cockroach:@VERSION@
imagePullPolicy: IfNotPresent
# TODO: Change these to appropriate values for the hardware that you're running. You can see
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I suppose we do not need to add TODO here?

@@ -190,13 +195,40 @@ spec:
topologyKey: kubernetes.io/hostname
containers:
- name: cockroachdb
image: cockroachdb/cockroach:v25.2.4
image: cockroachdb/cockroach:@VERSION@
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is @VERSION@ a placeholder?

@shreyaskm623 shreyaskm623 force-pushed the k8s_manifests_refactor branch from 0437332 to 87ed564 Compare August 14, 2025 06:06
  This commit updates the Kubernetes deployment manifests by removing deprecated APIs, enhancing security with IMDSv2, improving ARM compatibility, and cleaning up legacy files.

  Key changes:

  Update PodDisruptionBudget API from policy/v1beta1 to policy/v1
  Replace byrnedo/alpine-curl:0.1 with 3.20 for ARM64 support
  Implement IMDSv2 for secure AWS metadata access in EKS deployments
  Remove deprecated v1.6 and v1.7 directories (22 legacy files)
  Regenerate all manifest files from updated templates

  Release notes: none

  Epic: CRDB-49252
@shreyaskm623 shreyaskm623 force-pushed the k8s_manifests_refactor branch from 87ed564 to a291f46 Compare August 14, 2025 06:25
@@ -47,4 +47,4 @@ spec:
restartPolicy: OnFailure
volumes:
- name: client-certs
emptyDir: {}
emptyDir: {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can retain the newline at the end of the file - also applies to other files.

@shreyaskm623
Copy link
Contributor Author

Closing this in favor of : #153166

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.

4 participants