templates/manifests.template.yaml [213:319]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DependsOn:
      - EKSMetricsServer
      - EFSPVC
    Properties:
      # The lambda function that executes the manifest against the cluster. This is created in one of the parent stacks
      ClusterName: !Ref ClusterName
      Namespace: !Ref WorkloadNamespace
      # Kubernetes manifest URL
      Manifest: !Sub |
        apiVersion: apps/v1
        kind: StatefulSet
        metadata:
          name: molecule
          labels:
            app: molecule
        spec:
          selector:
            matchLabels:
              app: molecule
          serviceName: "molecule-service"
          replicas: 3
          template:
            metadata:
              labels:
                app: molecule
            spec:
              terminationGracePeriodSeconds: 60
              volumes:
                - name: molecule-storage
                  persistentVolumeClaim:
                    claimName: molecule-storage
                - name: tmpfs
                  emptyDir: {}
                - name: cgroup
                  hostPath:
                    path: /sys/fs/cgroup
                    type: Directory
              containers:
              - image: boomi/molecule:release
                imagePullPolicy: Always
                name: atom-node
                ports:
                - name: http
                  containerPort: 9090
                  protocol: TCP
                - name: https
                  containerPort: 9093
                  protocol: TCP
                lifecycle:
                  preStop:
                    exec:
                      command:
                        - sh
                        - /home/boomi/scaledown.sh
                resources:
                  limits:
                    cpu: "2000m"
                    memory: "4000Mi"
                  requests:
                    cpu: "2000m"
                    memory: "4000Mi"
                volumeMounts:
                  - mountPath: "/mnt/boomi"
                    name: molecule-storage
                  - name: tmpfs
                    mountPath: "/run"
                  - name: tmpfs
                    mountPath: "/tmp"
                  - name: cgroup
                    mountPath: /sys/fs/cgroup
                startupProbe:
                  failureThreshold: 90
                  timeoutSeconds: 90
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - startup
                readinessProbe:
                  periodSeconds: 10
                  initialDelaySeconds: 10
                  timeoutSeconds: 60
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - readiness
                livenessProbe:
                  periodSeconds: 60
                  timeoutSeconds: 60
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - liveness
                env:
                - name: BOOMI_ATOMNAME
                  value: "Boomi-EKS"
                - name: ATOM_LOCALHOSTID
                  valueFrom:
                    fieldRef:
                      fieldPath: metadata.name
                - name: BOOMI_ACCOUNTID
                  valueFrom:
                    secretKeyRef:
                      name: boomi-secret
                      key: account
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/manifests.template.yaml [339:445]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DependsOn:
      - EKSMetricsServer
      - EFSPVC
    Properties:
      # The lambda function that executes the manifest against the cluster. This is created in one of the parent stacks
      ClusterName: !Ref ClusterName
      Namespace: !Ref WorkloadNamespace
      # Kubernetes manifest URL
      Manifest: !Sub |
        apiVersion: apps/v1
        kind: StatefulSet
        metadata:
          name: molecule
          labels:
            app: molecule
        spec:
          selector:
            matchLabels:
              app: molecule
          serviceName: "molecule-service"
          replicas: 3
          template:
            metadata:
              labels:
                app: molecule
            spec:
              terminationGracePeriodSeconds: 60
              volumes:
                - name: molecule-storage
                  persistentVolumeClaim:
                    claimName: molecule-storage
                - name: tmpfs
                  emptyDir: {}
                - name: cgroup
                  hostPath:
                    path: /sys/fs/cgroup
                    type: Directory
              containers:
              - image: boomi/molecule:release
                imagePullPolicy: Always
                name: atom-node
                ports:
                - name: http
                  containerPort: 9090
                  protocol: TCP
                - name: https
                  containerPort: 9093
                  protocol: TCP
                lifecycle:
                  preStop:
                    exec:
                      command:
                        - sh
                        - /home/boomi/scaledown.sh
                resources:
                  limits:
                    cpu: "2000m"
                    memory: "4000Mi"
                  requests:
                    cpu: "2000m"
                    memory: "4000Mi"
                volumeMounts:
                  - mountPath: "/mnt/boomi"
                    name: molecule-storage
                  - name: tmpfs
                    mountPath: "/run"
                  - name: tmpfs
                    mountPath: "/tmp"
                  - name: cgroup
                    mountPath: /sys/fs/cgroup
                startupProbe:
                  failureThreshold: 90
                  timeoutSeconds: 90
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - startup
                readinessProbe:
                  periodSeconds: 10
                  initialDelaySeconds: 10
                  timeoutSeconds: 60
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - readiness
                livenessProbe:
                  periodSeconds: 60
                  timeoutSeconds: 60
                  exec:
                    command:
                      - sh
                      - /home/boomi/probe.sh
                      - liveness
                env:
                - name: BOOMI_ATOMNAME
                  value: "Boomi-EKS"
                - name: ATOM_LOCALHOSTID
                  valueFrom:
                    fieldRef:
                      fieldPath: metadata.name
                - name: BOOMI_ACCOUNTID
                  valueFrom:
                    secretKeyRef:
                      name: boomi-secret
                      key: account
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



