apiVersion: apps/v1 kind: Deployment metadata: labels: io.kompose.service: otrs sapian-app: otrs name: otrs spec: selector: matchLabels: sapian-app: otrs replicas: 2 strategy: type: Recreate template: metadata: labels: sapian-app: otrs spec: containers: - image: docker.sapian.cloud/sapian/nginx-otrs:ubuntu-16.04 name: otrs env: - name: TZ value: America/Bogota ports: - containerPort: 80 resources: {} lifecycle: postStart: exec: command: - /bin/sh - -c - cp -f /etc/otrs/Config.pm /opt/otrs/Kernel/Config.pm - chown otrs:www-data /opt/otrs/Kernel/Config.pm volumeMounts: - mountPath: /opt/otrs name: opt-otrs - mountPath: /etc/otrs readOnly: true name: otrs-kernel-config - mountPath: /opt/otrs/var/tmp name: tmp-otrs restartPolicy: Always volumes: - name: opt-otrs persistentVolumeClaim: claimName: data-opt-otrs - name: otrs-kernel-config secret: secretName: otrs-kernel-config items: - key: Config.pm path: Config.pm - name: tmp-otrs emptyDir: medium: "Memory" status: {}