You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will these interfere during deployment/replica/pod creation.
If yes, how to overcome this
We face this related issue,
Applications gets deployed through ArgoCD on EKS.
All components get created however the deploy/replicaset/pod are not created.
ERROR on ArgoCD UI
status:
conditions:
- lastTransitionTime: '2024-03-20T11:05:49Z'
message: >-
pods "datadog-mobile127-preprod-cluster-agent-7c74cfc694-q8nqv" is
forbidden: violates PodSecurity "restricted:v1.24":
allowPrivilegeEscalation != false (container "init-volume" must set
securityContext.allowPrivilegeEscalation=false), unrestricted
capabilities (containers "init-volume", "cluster-agent" must set
securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or
containers "init-volume", "cluster-agent" must set
securityContext.runAsNonRoot=true), seccompProfile (pod or containers
"init-volume", "cluster-agent" must set
securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
reason: FailedCreate
status: 'True'
type: ReplicaFailure
observedGeneration: 2
replicas: 0
Will these interfere during deployment/replica/pod creation.
If you only have constraint templates in the cluster and not respective constraint to enforce policies, the creation of resources wont be blocked.
ERROR on ArgoCD UI
For the error you faced, it seems to me that the namespace in which you are trying to spin up the pods may have restricted labels (more info here), and the container from the pod is in violation of it. It may not be related to any gk policy, otherwise there would be a name of the constraint there in the error message.
What steps did you take and what happened:
This is not a bug, However a post that requires guidance.
What did you expect to happen:
Cluster have the below ConstraintTemplate
There are plenty psp that present,
Need to clarify ::
We face this related issue,
ERROR on ArgoCD UI
Anything else you would like to add:
Environment:
kubectl version
): EKS 1.27The text was updated successfully, but these errors were encountered: