2025-09-12 11:20:18 -04:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
2025-09-13 22:31:18 -04:00
|
|
|
metadata: { name: tools, namespace: argocd }
|
2025-09-12 11:20:18 -04:00
|
|
|
spec:
|
2025-09-13 22:31:18 -04:00
|
|
|
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" }
|
2025-09-12 11:20:18 -04:00
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
2025-09-13 22:31:18 -04:00
|
|
|
metadata: { name: tools, namespace: argocd }
|
2025-09-12 11:20:18 -04:00
|
|
|
spec:
|
2025-09-13 22:31:18 -04:00
|
|
|
selector: { app: tools }
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
port: 1331
|
|
|
|
|
targetPort: 1331
|
|
|
|
|
nodePort: 31331
|
|
|
|
|
type: NodePort
|