YAML Input
Loading editor...
JSON Output
JSON OutputValid YAML
{
  "apiVersion": "apps/v1",
  "kind": "Deployment",
  "metadata": {
    "name": "callstack-app",
    "labels": {
      "app": "callstack"
    }
  },
  "spec": {
    "replicas": 3,
    "selector": {
      "matchLabels": {
        "app": "callstack"
      }
    },
    "template": {
      "metadata": {
        "labels": {
          "app": "callstack"
        }
      },
      "spec": {
        "containers": [
          {
            "name": "callstack",
            "image": "callstack:latest",
            "ports": [
              {
                "containerPort": 3000
              }
            ],
            "env": [
              {
                "name": "NODE_ENV",
                "value": "production"
              },
              {
                "name": "API_KEY",
                "valueFrom": {
                  "secretKeyRef": {
                    "name": "callstack-secrets",
                    "key": "api-key"
                  }
                }
              }
            ]
          }
        ]
      }
    }
  }
}