Skip to content

3035 - K8s Deployment

Kubernetes deployment specification. This is an example of a MAML document.

maml
{
  apiVersion: "apps/v1"
  kind: "Deployment"
  metadata: {
    name: "promise-worker"
    namespace: "staging"
    labels: {
      app: "stir-fry"
      tier: "frontend"
    }
  }

  # Deployment spec
  spec: {
    replicas: 2
    container: {
      image: "subexpression:4.18.6"
      port: 8080
      resources: {
        cpu_limit: "1000m"
        memory_limit: "512Mi"
      }
    }

    health_check: {
      path: "/ready"
      interval: 10
      timeout: 3
    }
  }
}

See Also