[
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "code-queue",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "code-queue-scheduler",
        "servicePort": 4222,
        "deploymentName": "code-queue"
      },
      "activeInstanceId": "D601",
      "singleWriter": true,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601",
          "nodeId": "D601",
          "role": "primary",
          "baseUrl": "kubernetes://unidesk/services/code-queue-scheduler:4222",
          "healthPath": "/health",
          "healthMode": "service-proxy"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  },
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "code-queue-read",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "code-queue-read",
        "servicePort": 4222
      },
      "activeInstanceId": "D601-read",
      "singleWriter": false,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601-read",
          "nodeId": "D601",
          "role": "standby",
          "baseUrl": "kubernetes://unidesk/services/code-queue-read:4222",
          "healthPath": "/live",
          "healthMode": "service-proxy"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  },
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "code-queue-write",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "code-queue-write",
        "servicePort": 4222
      },
      "activeInstanceId": "D601-write",
      "singleWriter": true,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601-write",
          "nodeId": "D601",
          "role": "primary",
          "baseUrl": "kubernetes://unidesk/services/code-queue-write:4222",
          "healthPath": "/health",
          "healthMode": "service-proxy"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  },
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "code-queue-scheduler",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "code-queue-scheduler",
        "servicePort": 4222,
        "deploymentName": "code-queue"
      },
      "activeInstanceId": "D601-scheduler",
      "singleWriter": true,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601-scheduler",
          "nodeId": "D601",
          "role": "primary",
          "baseUrl": "kubernetes://unidesk/services/code-queue-scheduler:4222",
          "healthPath": "/health",
          "healthMode": "service-proxy"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  },
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "d601-provider-egress-proxy",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "d601-provider-egress-proxy",
        "servicePort": 18789,
        "deploymentName": "d601-provider-egress-proxy"
      },
      "activeInstanceId": "D601-provider-egress",
      "singleWriter": false,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601-provider-egress",
          "nodeId": "D601",
          "role": "primary",
          "baseUrl": "kubernetes://unidesk/services/d601-provider-egress-proxy:18789",
          "healthPath": "/__unidesk/egress-proxy/health",
          "healthMode": "pod-ready"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  },
  {
    "apiVersion": "unidesk.ai/k3s/v1",
    "kind": "ManagedKubernetesService",
    "metadata": {
      "name": "d601-tcp-egress-gateway",
      "namespace": "unidesk"
    },
    "spec": {
      "adapterServiceId": "k3sctl-adapter",
      "controlPlane": {
        "type": "kubernetes",
        "cluster": "unidesk-k3s",
        "context": "unidesk-k3s"
      },
      "route": {
        "kind": "kubernetes-service",
        "serviceName": "d601-tcp-egress-gateway",
        "servicePort": 18080,
        "deploymentName": "d601-tcp-egress-gateway"
      },
      "activeInstanceId": "D601-tcp-egress",
      "singleWriter": false,
      "expectedNodeIds": [
        "D601"
      ],
      "instances": [
        {
          "id": "D601-tcp-egress",
          "nodeId": "D601",
          "role": "primary",
          "baseUrl": "kubernetes://unidesk/services/d601-tcp-egress-gateway:18080",
          "healthPath": "/health",
          "healthMode": "service-proxy"
        }
      ],
      "requireAllInstancesHealthy": false
    }
  }
]
