{ "kind": "List", "apiVersion": "v1", "metadata": {}, "items": [ { "kind": "Service", "apiVersion": "v1", "metadata": { "name": "redis", "creationTimestamp": null, "labels": { "io.kompose.service": "redis" } }, "spec": { "ports": [ { "name": "6379", "port": 6379, "targetPort": 6379 } ], "selector": { "io.kompose.service": "redis" } }, "status": { "loadBalancer": {} } }, { "kind": "Deployment", "apiVersion": "apps/v1", "metadata": { "name": "redis", "creationTimestamp": null, "labels": { "io.kompose.service": "redis" } }, "spec": { "replicas": 1, "selector": { "matchLabels": { "io.kompose.service": "redis" } }, "template": { "metadata": { "creationTimestamp": null, "labels": { "io.kompose.service": "redis" } }, "spec": { "containers": [ { "name": "redis", "image": "redis", "ports": [ { "containerPort": 6379 } ], "resources": {} } ], "restartPolicy": "Always", "affinity": { "nodeAffinity": { "requiredDuringSchedulingIgnoredDuringExecution": { "nodeSelectorTerms": [ { "matchExpressions": [ { "key": "kubernetes.io/hostname", "operator": "In", "values": [ "machine" ] }, { "key": "kubernetes.io/os", "operator": "In", "values": [ "ubuntu 14.04" ] }, { "key": "foo", "operator": "NotIn", "values": [ "bar" ] } ] } ] } } }, "topologySpreadConstraints": [ { "maxSkew": 2, "topologyKey": "zone", "whenUnsatisfiable": "ScheduleAnyway", "labelSelector": { "matchLabels": { "io.kompose.service": "redis" } } }, { "maxSkew": 1, "topologyKey": "ssd", "whenUnsatisfiable": "ScheduleAnyway", "labelSelector": { "matchLabels": { "io.kompose.service": "redis" } } } ] } }, "strategy": {} }, "status": {} } ] }