diff --git a/k8s/deployment.yml b/k8s/deployment.yml new file mode 100644 index 0000000..982fee9 --- /dev/null +++ b/k8s/deployment.yml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: dolphinsite + namespace: aria-projects + labels: + app: dolphinsite + managed-by: aria +spec: + replicas: 1 + selector: + matchLabels: + app: dolphinsite + template: + metadata: + labels: + app: dolphinsite + spec: + imagePullSecrets: + - name: gitea-registry + containers: + - name: dolphinsite + image: git.arthurbarre.fr/ordinarthur/dolphinsite:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + name: http + resources: + requests: + cpu: "10m" + memory: "16Mi" + limits: + cpu: "100m" + memory: "64Mi" + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 2 + periodSeconds: 5 + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 10 + periodSeconds: 15