apiVersion: apps/v1 kind: Deployment metadata: name: atom-deployment labels: app: atom spec: replicas: 1 selector: matchLabels: app: atom template: metadata: labels: app: atom env: test spec: containers: - name: atom-container image: boomi/atom:4.3.1 resources: limits: cpu: 1 requests: cpu: 1 volumeMounts: - mountPath: /var/boomi name: boomi-shared-folder imagePullPolicy: IfNotPresent ports: - containerPort: 9090 lifecycle: postStart: exec: command: [ "/bin/bash", "-ec", "echo `date`: Starting `hostname` with IP `hostname -i` with user `id`>> /var/boomi/hosts.log;", ] preStop: exec: command: [ "/bin/bash", "-ec", "echo `date`: Stopping `hostname` with IP `hostname -i` with user `id`>> /var/boomi/hosts.log;", ] env: - name: INSTALL_TOKEN value: - name: BOOMI_ACCOUNTID value: - name: BOOMI_ATOMNAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: ATOM_LOCALHOSTID valueFrom: fieldRef: fieldPath: spec.nodeName - name: INSTALLATION_DIRECTORY value: /var/boomi volumes: - name: boomi-shared-folder persistentVolumeClaim: claimName: nfs-volume