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
EXEC: launch a cluster with the cluster bot (you need quite some resources)
EXEC: push the following to the cluster using an editor
apiVersion: apps/v1kind: Deploymentmetadata:
name: gpt4all-deploymentspec:
replicas: 1selector:
matchLabels:
app: gpt4alltemplate:
metadata:
labels:
app: gpt4allspec:
containers:
- name: gpt4all-containerimage: runpod/gpt4allports:
- containerPort: 80# Adjust the port as needed
Result:
The deployment is created but no pods are created for it. When looking in the web console into the events you discover the reason, it is missing security elements:
Error creating: pods "gpt4all-deployment-7cd57494c7-plhz8" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "gpt4all-container" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "gpt4all-container" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "gpt4all-container" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "gpt4all-container" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
Without the events I dont know why the pods are not created.
The corrected deployment is as follows:
apiVersion: apps/v1kind: Deploymentmetadata:
name: gpt4all-deploymentspec:
replicas: 1selector:
matchLabels:
app: gpt4alltemplate:
metadata:
labels:
app: gpt4allspec:
containers:
- name: gpt4all-containerimage: runpod/gpt4allports:
- containerPort: 80# Adjust the port as neededsecurityContext:
allowPrivilegeEscalation: falserunAsNonRoot: truecapabilities:
drop:
- ALLseccompProfile:
type: RuntimeDefault # or "Localhost"
The text was updated successfully, but these errors were encountered:
Steps:
Result:
The deployment is created but no pods are created for it. When looking in the web console into the events you discover the reason, it is missing security elements:
Without the events I dont know why the pods are not created.
The corrected deployment is as follows:
The text was updated successfully, but these errors were encountered: