k8s-manifests/portal/base/portal-deployment.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2024-06-24 12:00:25 +00:00
---
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:
2024-11-14 10:20:56 +00:00
volumes:
- name: init-config
persistentVolumeClaim:
claimName: init-config
2024-06-24 12:00:25 +00:00
containers:
- name: portal
2024-11-14 10:33:49 +00:00
image: docker.sunet.se/drive/portal:0.1.0-4
2024-11-05 07:07:50 +00:00
imagePullPolicy: Always
2024-11-14 10:01:20 +00:00
volumeMounts:
2024-11-14 10:21:57 +00:00
- name: init-config
2024-11-14 10:01:20 +00:00
mountPath: /config
subPath: config
2024-11-14 11:18:41 +00:00
readOnly: true
2024-06-24 12:00:25 +00:00
resources: {}
2024-11-14 10:01:20 +00:00
initContainers:
2024-11-14 10:33:49 +00:00
- image: docker.sunet.se/drive/portal:0.1.0-4
2024-11-14 10:01:20 +00:00
name: init-config
volumeMounts:
2024-11-14 10:15:20 +00:00
- name: init-config
2024-11-14 10:01:20 +00:00
mountPath: /config
subPath: config
2024-11-14 11:18:41 +00:00
readOnly: false
2024-11-14 10:01:20 +00:00
env:
- name: DRIVE_DOMAIN
value: "https://drive.test.sunet.se"
command: ["/bin/bash", "-c", "/app/metadata.py > /config/config.yaml"]
2024-06-24 12:00:25 +00:00
strategy: {}
status: {}