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: resources:
- portal-pvc.yml
- portal-deployment.yml - portal-deployment.yml
- portal-ingress.yml - portal-ingress.yml
- portal-namespace.yml - portal-namespace.yml

View file

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