{
  "spec": {
    "template": {
      "spec": {
        "serviceAccountName": "sdm-serviceaccount",
        "containers": [
          {
            "env": [
              {
                "name": "ATOMIST_DEPLOYMENT_NAME",
                "value": "demo-sdm"
              },
              {
                "name": "ATOMIST_DEPLOYMENT_NAMESPACE",
                "valueFrom": {
                  "fieldRef": {
                    "fieldPath": "metadata.namespace"
                  }
                }
              },
              {
                "name": "NODE_ENV",
                "value": "production"
              },
              {
                "name": "FORCE_COLOR",
                "value": "1"
              },
              {
                "name": "ATOMIST_GOAL_LAUNCHER",
                "value": "kubernetes"
              },
              {
                "name": "ATOMIST_CONFIG",
                "valueFrom": {
                  "secretKeyRef": {
                    "name": "atm-sdm",
                    "key": "config"
                  }
                }
              },
              {
                "name": "ATOMIST_CONFIG_PATH",
                "value": "/opt/atm/atomist-config.json"
              }
            ],
            "livenessProbe": {
              "httpGet": {
                "path": "/health",
                "port": "http",
                "scheme": "HTTP"
              },
              "initialDelaySeconds": 20,
              "timeoutSeconds": 3,
              "periodSeconds": 20,
              "successThreshold": 1,
              "failureThreshold": 3
            },
            "readinessProbe": {
              "httpGet": {
                "path": "/health",
                "port": "http",
                "scheme": "HTTP"
              },
              "initialDelaySeconds": 20,
              "timeoutSeconds": 3,
              "periodSeconds": 20,
              "successThreshold": 1,
              "failureThreshold": 3
            },
            "resources": {
              "limits": {
                "cpu": "2000m",
                "memory": "3000Mi"
              },
              "requests": {
                "cpu": "500m",
                "memory": "1000Mi"
              }
            },
            "volumeMounts": [
              {
                "name": "docker-sock",
                "mountPath": "/var/run/docker.sock"
              },
              {
                "name": "automation",
                "mountPath": "/opt/atm",
                "readOnly": true
              }
            ]
          }
        ],
        "volumes": [
          {
            "name": "docker-sock",
            "hostPath": {
              "path": "/var/run/docker.sock"
            }
          },
          {
            "name": "automation",
            "secret": {
              "secretName": "automation"
            }
          }
        ],
        "terminationGracePeriodSeconds": 180
      }
    }
  }
}
