-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: address opa violations #332
Conversation
Linked task to ClickUp! |
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: http-healthz | ||
periodSeconds: 60 | ||
initialDelaySeconds: 15 | ||
failureThreshold: 10 | ||
successThreshold: 1 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: http-healthz | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
failureThreshold: 3 | ||
successThreshold: 1 |
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.
The node-enricher currently does not expose a /healthz API - It's something we will need to add on the agent
securityContext: | ||
runAsUser: 1000 | ||
runAsGroup: 3000 | ||
fsGroup: 2000 | ||
runAsNonRoot: true |
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.
This prevents the init container from copying the certificate into /etc
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.
# kubectl logs -n test-chart helm-test-komodor-agent-88c75854c-4xnxq -c init-cert
~ cp: can't create '/etc/ssl/certs/mitmproxy-ca.crt': Permission denied
cu-86c0ccq6k - OPA Violations - Configure Liveness and Readiness Probes for node-enricher
cu-86c0ccpfj - OPA Violation - Set Resource Quotas for init-daemon and init-cert
cu-86c0ccmyv - OPA Violation - Security Context - komodor-agent
fixes for OPA violations on liveness\readiness probes\ resource qoutas and security context missing