adding example for hardened linux clusters based on example

This commit is contained in:
Caleb Warren
2024-11-14 08:28:18 -08:00
parent 49b47218bd
commit b04372638a
7 changed files with 164 additions and 0 deletions

16
hardened/README.md Normal file
View File

@@ -0,0 +1,16 @@
# Hardened 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.
```yaml
kind: GitRepo
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: simple
namespace: fleet-local
spec:
repo: https://github.com/rancher/fleet-examples
paths:
- hardened
```