{
  "kind": "List",
  "apiVersion": "v1",
  "metadata": {},
  "items": [
    {
      "kind": "Service",
      "apiVersion": "v1",
      "metadata": {
        "name": "foo",
        "creationTimestamp": null,
        "labels": {
          "io.kompose.service": "foo"
        },
        "annotations": {
          "kompose.cmd": "%CMD%",
          "kompose.service.type": "headless",
          "kompose.version": "%VERSION%"
        }
      },
      "spec": {
        "ports": [
          {
            "name": "headless",
            "port": 55555,
            "targetPort": 0
          }
        ],
        "selector": {
          "io.kompose.service": "foo"
        },
        "clusterIP": "None"
      },
      "status": {
        "loadBalancer": {}
      }
    },
    {
      "apiVersion": "apps/v1",
      "kind": "Deployment",
      "metadata": {
        "annotations": {
          "kompose.cmd": "%CMD%",
          "kompose.version": "%VERSION%"
        },
        "creationTimestamp": null,
        "labels": {
          "io.kompose.service": "db"
        },
        "name": "db"
      },
      "spec": {
        "replicas": 1,
        "selector": {
          "matchLabels": {
            "io.kompose.service": "db"
          }
        },
        "strategy": {},
        "template": {
          "metadata": {
            "annotations": {
              "kompose.cmd": "%CMD%",
              "kompose.version": "%VERSION%"
            },
            "creationTimestamp": null,
            "labels": {
              "io.kompose.service": "db"
            }
          },
          "spec": {
            "containers": [
              {
                "image": "postgres",
                "imagePullPolicy": "",
                "name": "db",
                "resources": {}
              }
            ],
            "affinity": {
              "nodeAffinity": {
                "requiredDuringSchedulingIgnoredDuringExecution": {
                  "nodeSelectorTerms": [
                    {
                      "matchExpressions": [
                        {
                          "key": "kubernetes.io/hostname",
                          "operator": "In",
                          "values": ["machine"]
                        },
                        {
                          "key": "kubernetes.io/oss",
                          "operator": "In",
                          "values": ["ubuntu 14.04"]
                        },
                        {
                          "key": "foo",
                          "operator": "NotIn",
                          "values": ["bar"]
                        }
                      ]
                    }
                  ]
                }
              }
            },
            "restartPolicy": "Always",
            "serviceAccountName": "",
            "volumes": null
          }
        }
      },
      "status": {}
    },
    {
      "apiVersion": "apps/v1",
      "kind": "DaemonSet",
      "metadata": {
        "annotations": {
          "kompose.cmd": "%CMD%",
          "kompose.service.type": "headless",
          "kompose.version": "%VERSION%"
        },
        "creationTimestamp": null,
        "labels": {
          "com.example.description": "This label will appear on the web service",
          "io.kompose.service": "foo"
        },
        "name": "foo"
      },
      "spec": {
        "template": {
          "metadata": {
            "creationTimestamp": null,
            "labels": {
              "io.kompose.service": "foo"
            }
          },
          "spec": {
            "containers": [
              {
                "image": "redis",
                "imagePullPolicy": "",
                "name": "foo",
                "resources": {}
              }
            ],
            "restartPolicy": "Always",
            "serviceAccountName": "",
            "volumes": null
          }
        }
      },
      "status": {
        "currentNumberScheduled": 0,
        "desiredNumberScheduled": 0,
        "numberMisscheduled": 0
      }
    },
    {
      "apiVersion": "apps/v1",
      "kind": "Deployment",
      "metadata": {
        "annotations": {
          "kompose.cmd": "%CMD%",
          "kompose.version": "%VERSION%"
        },
        "creationTimestamp": null,
        "labels": {
          "io.kompose.service": "vote"
        },
        "name": "vote"
      },
      "spec": {
        "replicas": 2,
        "selector": {
          "matchLabels": {
            "io.kompose.service": "vote"
          }
        },
        "strategy": {
          "rollingUpdate": {
            "maxSurge": 0,
            "maxUnavailable": 2
          },
          "type": "RollingUpdate"
        },
        "template": {
          "metadata": {
            "annotations": {
              "kompose.cmd": "%CMD%",
              "kompose.version": "%VERSION%"
            },
            "creationTimestamp": null,
            "labels": {
              "io.kompose.service": "vote"
            }
          },
          "spec": {
            "containers": [
              {
                "image": "dockersamples/examplevotingapp_vote:before",
                "imagePullPolicy": "",
                "name": "vote",
                "resources": {}
              }
            ],
            "affinity": {
              "nodeAffinity": {
                "requiredDuringSchedulingIgnoredDuringExecution": {
                  "nodeSelectorTerms": [
                    {
                      "matchExpressions": [
                        {
                          "key": "kubernetes.io/hostname",
                          "operator": "In",
                          "values": ["machine"]
                        }
                      ]
                    }
                  ]
                }
              }
            },
            "restartPolicy": "Always",
            "serviceAccountName": "",
            "volumes": null
          }
        }
      },
      "status": {}
    }
  ]
}
