53 lines
1.2 KiB
YAML
53 lines
1.2 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
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: init-config
|
|
spec:
|
|
storageClassName: csi-sc-cinderplugin
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
spec:
|
|
containers:
|
|
- name: portal
|
|
image: docker.sunet.se/drive/portal:0.1.0-3
|
|
imagePullPolicy: Always
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /config
|
|
subPath: config
|
|
resources: {}
|
|
initContainers:
|
|
- image: docker.sunet.se/drive/portal:0.1.0-3
|
|
name: init-config
|
|
volumeMounts:
|
|
- name: config-volume
|
|
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: {}
|