final attempt before I give up for today
This commit is contained in:
@@ -2,34 +2,36 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata: { name: tools, namespace: ai }
|
||||
spec:
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: tools } }
|
||||
template:
|
||||
metadata: { labels: { app: tools } }
|
||||
spec:
|
||||
containers:
|
||||
- name: tools
|
||||
image: docker.io/ion606/tools:latest
|
||||
ports: [{ containerPort: 1331 }]
|
||||
env:
|
||||
- { name: HOST, value: "0.0.0.0" }
|
||||
- { name: PORT, value: "1331" }
|
||||
- { name: ROKU_IP, value: "192.0.2.10" }
|
||||
readinessProbe:
|
||||
{ httpGet: { path: "/roku/openapi.json", port: 1331 } }
|
||||
livenessProbe:
|
||||
{
|
||||
httpGet: { path: "/roku/openapi.json", port: 1331 },
|
||||
initialDelaySeconds: 10,
|
||||
}
|
||||
resources:
|
||||
requests: { cpu: "100m", memory: "128Mi" }
|
||||
limits: { cpu: "500m", memory: "512Mi" }
|
||||
replicas: 1
|
||||
selector: { matchLabels: { app: tools } }
|
||||
template:
|
||||
metadata: { labels: { app: tools } }
|
||||
spec:
|
||||
containers:
|
||||
- name: tools
|
||||
image: docker.io/ion606/tools:latest
|
||||
ports: [{ containerPort: 1331 }]
|
||||
env:
|
||||
- { name: HOST, value: "0.0.0.0" }
|
||||
- { name: PORT, value: "1331" }
|
||||
- { name: ROKU_IP, value: "192.0.2.10" }
|
||||
readinessProbe:
|
||||
httpGet: { path: "/roku/openapi.json", port: 1331 }
|
||||
livenessProbe:
|
||||
httpGet: { path: "/roku/openapi.json", port: 1331 }
|
||||
initialDelaySeconds: 10
|
||||
resources:
|
||||
requests: { cpu: "100m", memory: "128Mi" }
|
||||
limits: { cpu: "500m", memory: "512Mi" }
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata: { name: tools, namespace: ai }
|
||||
spec:
|
||||
selector: { app: tools }
|
||||
ports: [{ name: http, port: 1331, targetPort: 1331 }]
|
||||
type: ClusterIP
|
||||
selector: { app: tools }
|
||||
ports:
|
||||
- name: http
|
||||
port: 1331
|
||||
targetPort: 1331
|
||||
nodePort: 31331
|
||||
type: NodePort
|
||||
Reference in New Issue
Block a user