In Game of Pods for the Bravo cluster, it is not detecting InitContainers for Drupal application.
Below is my deployment file. Did someone else has faced this issue?
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: drupal
name: drupal
spec:
replicas: 1
selector:
matchLabels:
app: drupal
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: drupal
spec:
containers:
- image: drupal:8.6
name: drupal
volumeMounts:
- name: drupal-pvc
mountPath: “/var/www/html/modules”
subPath: modules
mountPath: “/var/www/html/profiles”
subPath: profiles
mountPath: “/var/www/html/sites”
subPath: sites
mountPath: “/var/www/html/themes”
subPath: themes
initContainers:
- name: init-sites-volume
image: drupal:8.6
command: [ “/bin/bash”, “-c” ]
args: [ ‘cp -r /var/www/html/sites/ /data/; chown www-data:www-data /data/ -R’ ]
volumeMounts:
- name: drupal-pvc
mountPath: “/data”
volumes:
- name: drupal-pvc
persistentVolumeClaim:
claimName: drupal-pvc
status: {}