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

adding example for hardened linux clusters based on 'simple' example #52

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

slickwarren
Copy link
Contributor

This is an example that works when deploying to hardened clusters, with the caveat of the existing PSA on the cluster allowing use/deployments to the default namespace.

@slickwarren slickwarren requested a review from a team as a code owner November 14, 2024 16:36
@slickwarren slickwarren changed the title adding example for hardened linux clusters based on example adding example for hardened linux clusters based on 'simple' example Nov 14, 2024
hardened/README.md Outdated Show resolved Hide resolved
# Simple Example

This example will deploy the [Kubernetes sample guestbook](https://github.com/kubernetes/examples/tree/master/guestbook/) application, with modifications to securityContext which allow its deployment on a hardened cluster.
The app will be deployed into the `default` namespace. Note that you must have added the `default` namespace to the PSA to allow deployments to this namespace.
Copy link
Member

Choose a reason for hiding this comment

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

Is it useful here to add namespace labels via fleet.yaml?

For example:

# namespaceLabels are labels that will be appended to the namespace created by
# Fleet.
namespaceLabels:
  pod-security.kubernetes.io/enforce: baseline
  pod-security.kubernetes.io/enforce-version: v1.31

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice, I like this feature. I've added namespaceLabels for the hardened example.

@slickwarren slickwarren force-pushed the cwarren/hardened-example branch from db39eb7 to b043726 Compare November 26, 2024 17:27
@manno manno merged commit dcf4917 into rancher:master Nov 27, 2024
2 checks passed
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