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

47 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:
2024-11-14 10:12:42 +00:00
volumes:
2024-11-14 10:15:20 +00:00
- name: init-config
2024-11-14 10:12:42 +00:00
persistentVolumeClaim:
claimName: init-config
2024-06-24 12:00:25 +00:00
replicas: 3
selector:
matchLabels:
app: portal-node
template:
metadata:
creationTimestamp:
labels:
app: portal-node
spec:
containers:
- name: portal
2024-11-14 10:01:20 +00:00
image: docker.sunet.se/drive/portal:0.1.0-3
2024-11-05 07:07:50 +00:00
imagePullPolicy: Always
2024-11-14 10:01:20 +00:00
volumeMounts:
2024-11-14 10:15:20 +00:00
- name: inti-config
2024-11-14 10:01:20 +00:00
mountPath: /config
subPath: config
2024-06-24 12:00:25 +00:00
resources: {}
2024-11-14 10:01:20 +00:00
initContainers:
- image: docker.sunet.se/drive/portal:0.1.0-3
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
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: {}