deps.rs/deploy/base/deployment.yaml
Arnaud Rebts fc89990771
CD: deploy to kubernetes (#79)
* Adds kubernetes manfiests, and deploy push

* Add production overlay

* Add a volume for crates.io-index
2020-11-15 16:36:21 +01:00

32 lines
693 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: deps-rs
spec:
selector:
matchLabels:
app: deps-rs
template:
metadata:
labels:
app: deps-rs
spec:
volumes:
- name: cargo
emptyDir: {}
containers:
- name: deps-rs
image: ghcr.io/deps-rs/deps.rs:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: BASE_URL
value: https://$(DOMAIN)
volumeMounts:
- mountPath: /home/deps/.cargo
name: cargo
readinessProbe:
httpGet:
path: /
port: 8080