52 lines
No EOL
1 KiB
YAML
52 lines
No EOL
1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: wcag-ada-dashboard
|
|
namespace: wcag-ada
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: wcag-ada-dashboard
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: wcag-ada-dashboard
|
|
spec:
|
|
containers:
|
|
- name: dashboard
|
|
image: wcag-ada/dashboard:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: wcag-ada-dashboard-service
|
|
namespace: wcag-ada
|
|
spec:
|
|
selector:
|
|
app: wcag-ada-dashboard
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
type: ClusterIP |