57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app
|
|
namespace: toolrate
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: toolrate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: toolrate
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
image: gitea.example.com/your-org/tool-evaluator:sha-abcdef
|
|
ports:
|
|
- containerPort: 8080
|
|
envFrom:
|
|
- configMapRef:
|
|
name: app-config
|
|
- secretRef:
|
|
name: app-secrets
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /api/healthz
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /api/healthz
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: app
|
|
namespace: toolrate
|
|
spec:
|
|
selector:
|
|
app: toolrate
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|