Remove init containers
This commit is contained in:
parent
29d8638215
commit
fa259a2d7c
|
@ -1,5 +1,4 @@
|
|||
resources:
|
||||
- portal-pvc.yml
|
||||
- portal-deployment.yml
|
||||
- portal-ingress.yml
|
||||
- portal-namespace.yml
|
||||
|
|
|
@ -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: {}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: init-config
|
||||
spec:
|
||||
storageClassName: csi-sc-cinderplugin
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
|
@ -10,7 +10,7 @@ metadata:
|
|||
spec:
|
||||
template:
|
||||
spec:
|
||||
initContainers:
|
||||
containers:
|
||||
- env:
|
||||
- name: DRIVE_DOMAIN
|
||||
value: "https://drive.test.sunet.se"
|
||||
|
|
Loading…
Reference in a new issue