Remove init containers

This commit is contained in:
Micke Nordin 2024-11-14 12:24:53 +01:00
parent 29d8638215
commit fa259a2d7c
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
4 changed files with 2 additions and 33 deletions

View file

@ -1,5 +1,4 @@
resources:
- portal-pvc.yml
- portal-deployment.yml
- portal-ingress.yml
- portal-namespace.yml

View file

@ -18,31 +18,13 @@ spec:
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-4
image: docker.sunet.se/drive/portal:0.1.0-5
imagePullPolicy: Always
volumeMounts:
- name: init-config
mountPath: /config
subPath: config
readOnly: true
resources: {}
initContainers:
- image: docker.sunet.se/drive/portal:0.1.0-4
name: init-config
volumeMounts:
- name: init-config
mountPath: /config
subPath: config
readOnly: false
env:
- name: DRIVE_DOMAIN
value: "https://drive.test.sunet.se"
command: ["/bin/bash", "-c", "/app/metadata.py > /config/config.yaml"]
strategy: {}
status: {}

View file

@ -1,12 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: init-config
spec:
storageClassName: csi-sc-cinderplugin
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi

View file

@ -10,7 +10,7 @@ metadata:
spec:
template:
spec:
initContainers:
containers:
- env:
- name: DRIVE_DOMAIN
value: "https://drive.test.sunet.se"