-
Notifications
You must be signed in to change notification settings - Fork 4k
cloud/kubernetes: update manifests and enhance security #151314
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
cloud/kubernetes: update manifests and enhance security #151314
Conversation
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. |
24331cb
to
4a21e3d
Compare
4a21e3d
to
0437332
Compare
cloud/kubernetes/README.md
Outdated
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is @VERSION@
a placeholder?
0437332
to
87ed564
Compare
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
87ed564
to
a291f46
Compare
f01ea40
to
17f7e40
Compare
@@ -47,4 +47,4 @@ spec: | |||
restartPolicy: OnFailure | |||
volumes: | |||
- name: client-certs | |||
emptyDir: {} | |||
emptyDir: {} |
There was a problem hiding this comment.
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.
Closing this in favor of : #153166 |
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:
Release notes: none
Epic: CRDB-49252