k8s-manifests/portal/base/portal-deployment.yml
2024-11-14 11:20:56 +01:00

47 lines
1.1 KiB
YAML

---
kind: Deployment
apiVersion: apps/v1
metadata:
name: portal-node
namespace: portal
creationTimestamp:
labels:
app: portal-node
spec:
replicas: 3
selector:
matchLabels:
app: portal-node
template:
metadata:
creationTimestamp:
labels:
app: portal-node
spec:
volumes:
- name: init-config
persistentVolumeClaim:
claimName: init-config
containers:
- name: portal
image: docker.sunet.se/drive/portal:0.1.0-3
imagePullPolicy: Always
volumeMounts:
- name: inti-config
mountPath: /config
subPath: config
resources: {}
initContainers:
- image: docker.sunet.se/drive/portal:0.1.0-3
name: init-config
volumeMounts:
- name: init-config
mountPath: /config
subPath: config
env:
- name: DRIVE_DOMAIN
value: "https://drive.test.sunet.se"
command: ["/bin/bash", "-c", "/app/metadata.py > /config/config.yaml"]
strategy: {}
status: {}