32 lines
778 B
YAML
32 lines
778 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pwa
|
|
namespace: ordinarthur-os
|
|
spec:
|
|
replicas: 1
|
|
selector: { matchLabels: { app: pwa } }
|
|
template:
|
|
metadata: { labels: { app: pwa } }
|
|
spec:
|
|
containers:
|
|
- name: pwa
|
|
image: gitea.arthurbarre.fr/arthurbarre/ordinarthur-os-pwa:latest
|
|
imagePullPolicy: Always
|
|
ports: [{ containerPort: 80 }]
|
|
readinessProbe:
|
|
httpGet: { path: /, port: 80 }
|
|
initialDelaySeconds: 3
|
|
resources:
|
|
requests: { cpu: 20m, memory: 32Mi }
|
|
limits: { cpu: 100m, memory: 128Mi }
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pwa
|
|
namespace: ordinarthur-os
|
|
spec:
|
|
selector: { app: pwa }
|
|
ports: [{ port: 80, targetPort: 80 }]
|