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

fleet-agent does not start afert apply cisProfile: cis #2887

Open
1 task done
jisnardo opened this issue Sep 20, 2024 · 0 comments
Open
1 task done

fleet-agent does not start afert apply cisProfile: cis #2887

jisnardo opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@jisnardo
Copy link

jisnardo commented Sep 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi, after apply cisProfile: cis to a deployed rke2 cluster, fleet-agent does not start.

https://docs.rke2.io/security/hardening_guide

Related: #1875, #1860

Expected Behavior

NAME            READY   STATUS    RESTARTS      AGE
fleet-agent-0   2/2     Running   1 (25h ago)   25h

Steps To Reproduce

  • Deploy a rke2 cluster with turtles and fleet.
  • Apply cisProfile: cis to RKE2ControlPlane and RKE2ConfigTemplate.
  • kubectl -n fleet-addon-agent describe po fleet-agent-0

Environment

- Architecture: x86_64
- Fleet Version: rancher-turtles-system addon v0.3.1
- Cluster:
  - Provider: infrastructure vsphere v1.10.2
  - Options: addon capi-ipam-in-cluster-system v0.1.0
  - Kubernetes Version: v1.30.4+rke2r1

- rancher turtles v1.11.0
- core cluster-api v1.7.3
- rke2-bootstrap v0.6.1 (upgraded from v0.5.0)
- rke2-control-plane v0.6.1 (upgraded from v0.5.0)

Logs

Events: 
Type Reason Age From Message 
---- ------ ---- ---- ------- 
Warning FailedCreate 10m (x43 over 124m) statefulset-controller create Pod fleet-agent-0 in StatefulSet fleet-agent failed error: pods "fleet-agent-0" is forbidden: violates PodSecurity "restricted:latest": seccompProfile (pod or containers "fleet-agent-register", "fleet-agent", "fleet-agent-clusterstatus" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")

### Anything else?

_No response_

Thanks in advance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant