final attempt before I give up for today
This commit is contained in:
@@ -14,23 +14,18 @@ spec:
|
||||
ports: [{ containerPort: 8787 }]
|
||||
env:
|
||||
- { name: PORT, value: "8787" }
|
||||
- {
|
||||
name: NAMESPACE,
|
||||
valueFrom:
|
||||
{ fieldRef: { fieldPath: metadata.namespace } },
|
||||
}
|
||||
- name: NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
readinessProbe:
|
||||
{
|
||||
httpGet: { path: "/openapi.json", port: 8787 },
|
||||
initialDelaySeconds: 5,
|
||||
periodSeconds: 10,
|
||||
}
|
||||
httpGet: { path: "/openapi.json", port: 8787 }
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
{
|
||||
httpGet: { path: "/openapi.json", port: 8787 },
|
||||
initialDelaySeconds: 15,
|
||||
periodSeconds: 20,
|
||||
}
|
||||
httpGet: { path: "/openapi.json", port: 8787 }
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
resources:
|
||||
requests: { cpu: "100m", memory: "128Mi" }
|
||||
limits: { cpu: "500m", memory: "512Mi" }
|
||||
@@ -40,5 +35,9 @@ kind: Service
|
||||
metadata: { name: coderunner, namespace: ai }
|
||||
spec:
|
||||
selector: { app: coderunner }
|
||||
ports: [{ name: http, port: 8787, targetPort: 8787 }]
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http
|
||||
port: 8787
|
||||
targetPort: 8787
|
||||
nodePort: 31787
|
||||
type: NodePort
|
||||
|
||||
Reference in New Issue
Block a user