Remove init containers
This commit is contained in:
parent
29d8638215
commit
fa259a2d7c
|
@ -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
|
||||||
|
|
|
@ -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: {}
|
||||||
|
|
|
@ -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:
|
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"
|
||||||
|
|
Loading…
Reference in a new issue