{
    "kind": "List",
    "apiVersion": "v1",
    "metadata": {},
    "items": [
        {
            "kind": "ServiceAccount",
            "apiVersion": "v1",
            "metadata": {
                "name": "seldon",
                "creationTimestamp": null
            }
        },
        {
            "kind": "Role",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "seldon-local",
                "creationTimestamp": null
            },
            "rules": [
                {
                    "verbs": [
                        "*"
                    ],
                    "apiGroups": [
                        "*"
                    ],
                    "resources": [
                        "deployments",
                        "services"
                    ]
                },
                {
                    "verbs": [
                        "*"
                    ],
                    "apiGroups": [
                        "machinelearning.seldon.io"
                    ],
                    "resources": [
                        "*"
                    ]
                }
            ]
        },
        {
            "kind": "ClusterRole",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "seldon-crd",
                "creationTimestamp": null
            },
            "rules": [
                {
                    "verbs": [
                        "create"
                    ],
                    "apiGroups": [
                        "apiextensions.k8s.io"
                    ],
                    "resources": [
                        "customresourcedefinitions"
                    ]
                }
            ]
        },
        {
            "kind": "RoleBinding",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "seldon",
                "creationTimestamp": null
            },
            "subjects": [
                {
                    "kind": "ServiceAccount",
                    "name": "seldon",
                    "namespace": "seldon"
                }
            ],
            "roleRef": {
                "apiGroup": "rbac.authorization.k8s.io",
                "kind": "Role",
                "name": "seldon-local"
            }
        },
        {
            "kind": "ClusterRoleBinding",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "seldon",
                "creationTimestamp": null
            },
            "subjects": [
                {
                    "kind": "ServiceAccount",
                    "name": "seldon",
                    "namespace": "seldon"
                }
            ],
            "roleRef": {
                "apiGroup": "rbac.authorization.k8s.io",
                "kind": "ClusterRole",
                "name": "seldon-crd"
            }
        },
        {
            "kind": "Role",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "ambassador",
                "creationTimestamp": null
            },
            "rules": [
                {
                    "verbs": [
                        "get",
                        "list",
                        "watch"
                    ],
                    "apiGroups": [
                        ""
                    ],
                    "resources": [
                        "services"
                    ]
                },
                {
                    "verbs": [
                        "create",
                        "update",
                        "patch",
                        "get",
                        "list",
                        "watch"
                    ],
                    "apiGroups": [
                        ""
                    ],
                    "resources": [
                        "configmaps"
                    ]
                },
                {
                    "verbs": [
                        "get",
                        "list",
                        "watch"
                    ],
                    "apiGroups": [
                        ""
                    ],
                    "resources": [
                        "secrets"
                    ]
                }
            ]
        },
        {
            "kind": "RoleBinding",
            "apiVersion": "rbac.authorization.k8s.io/v1",
            "metadata": {
                "name": "ambassador",
                "creationTimestamp": null
            },
            "subjects": [
                {
                    "kind": "ServiceAccount",
                    "name": "seldon",
                    "namespace": "seldon"
                }
            ],
            "roleRef": {
                "apiGroup": "rbac.authorization.k8s.io",
                "kind": "Role",
                "name": "ambassador"
            }
        },
        {
            "kind": "Service",
            "apiVersion": "v1",
            "metadata": {
                "name": "RELEASE-NAME-ambassador",
                "creationTimestamp": null,
                "labels": {
                    "service": "ambassador"
                },
                "annotations": {
                    "getambassador.io/config": "---\napiVersion: ambassador/v0\nkind:  Module\nname:  ambassador\nconfig:\n  service_port: 8080\n"
                }
            },
            "spec": {
                "ports": [
                    {
                        "name": "http",
                        "protocol": "TCP",
                        "port": 8080,
                        "targetPort": 8080
                    }
                ],
                "selector": {
                    "service": "ambassador"
                },
                "type": "NodePort",
                "sessionAffinity": "None",
                "externalTrafficPolicy": "Cluster"
            },
            "status": {
                "loadBalancer": {}
            }
        },
        {
            "kind": "Service",
            "apiVersion": "v1",
            "metadata": {
                "name": "RELEASE-NAME-ambassador-admin",
                "creationTimestamp": null,
                "labels": {
                    "service": "ambassador-admin"
                }
            },
            "spec": {
                "ports": [
                    {
                        "name": "ambassador-admin",
                        "protocol": "TCP",
                        "port": 8877,
                        "targetPort": 8877
                    }
                ],
                "selector": {
                    "service": "ambassador"
                },
                "type": "NodePort",
                "sessionAffinity": "None",
                "externalTrafficPolicy": "Cluster"
            },
            "status": {
                "loadBalancer": {}
            }
        },
        {
            "kind": "Deployment",
            "apiVersion": "apps/v1",
            "metadata": {
                "name": "RELEASE-NAME-ambassador",
                "creationTimestamp": null,
                "labels": {
                    "service": "ambassador"
                }
            },
            "spec": {
                "replicas": 1,
                "selector": {
                    "matchLabels": {
                        "service": "ambassador"
                    }
                },
                "template": {
                    "metadata": {
                        "creationTimestamp": null,
                        "labels": {
                            "service": "ambassador"
                        },
                        "annotations": {
                            "sidecar.istio.io/inject": "false"
                        }
                    },
                    "spec": {
                        "containers": [
                            {
                                "name": "ambassador",
                                "image": "quay.io/datawire/ambassador:0.35.1",
                                "ports": [
                                    {
                                        "name": "http",
                                        "containerPort": 8080,
                                        "protocol": "TCP"
                                    },
                                    {
                                        "name": "https",
                                        "containerPort": 443,
                                        "protocol": "TCP"
                                    },
                                    {
                                        "name": "admin",
                                        "containerPort": 8877,
                                        "protocol": "TCP"
                                    }
                                ],
                                "env": [
                                    {
                                        "name": "AMBASSADOR_SINGLE_NAMESPACE",
                                        "value": "true"
                                    },
                                    {
                                        "name": "AMBASSADOR_NAMESPACE",
                                        "valueFrom": {
                                            "fieldRef": {
                                                "apiVersion": "v1",
                                                "fieldPath": "metadata.namespace"
                                            }
                                        }
                                    }
                                ],
                                "resources": {
                                    "limits": {
                                        "cpu": "1",
                                        "memory": "400Mi"
                                    },
                                    "requests": {
                                        "cpu": "200m",
                                        "memory": "128Mi"
                                    }
                                },
                                "livenessProbe": {
                                    "httpGet": {
                                        "path": "/ambassador/v0/check_alive",
                                        "port": "admin",
                                        "scheme": "HTTP"
                                    },
                                    "initialDelaySeconds": 30,
                                    "timeoutSeconds": 1,
                                    "periodSeconds": 3,
                                    "successThreshold": 1,
                                    "failureThreshold": 3
                                },
                                "readinessProbe": {
                                    "httpGet": {
                                        "path": "/ambassador/v0/check_ready",
                                        "port": "admin",
                                        "scheme": "HTTP"
                                    },
                                    "initialDelaySeconds": 30,
                                    "timeoutSeconds": 1,
                                    "periodSeconds": 3,
                                    "successThreshold": 1,
                                    "failureThreshold": 3
                                },
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File",
                                "imagePullPolicy": "IfNotPresent"
                            },
                            {
                                "name": "statsd",
                                "image": "datawire/prom-statsd-exporter:0.6.0",
                                "ports": [
                                    {
                                        "name": "metrics",
                                        "containerPort": 9102,
                                        "protocol": "TCP"
                                    }
                                ],
                                "resources": {},
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File",
                                "imagePullPolicy": "IfNotPresent"
                            }
                        ],
                        "restartPolicy": "Always",
                        "terminationGracePeriodSeconds": 30,
                        "dnsPolicy": "ClusterFirst",
                        "serviceAccountName": "seldon",
                        "serviceAccount": "seldon",
                        "securityContext": {
                            "runAsUser": 8888
                        },
                        "schedulerName": "default-scheduler"
                    }
                },
                "strategy": {
                    "type": "RollingUpdate",
                    "rollingUpdate": {
                        "maxUnavailable": 1,
                        "maxSurge": 1
                    }
                },
                "progressDeadlineSeconds": 2147483647
            },
            "status": {}
        },
        {
            "kind": "Deployment",
            "apiVersion": "apps/v1",
            "metadata": {
                "name": "RELEASE-NAME-seldon-apiserver",
                "creationTimestamp": null,
                "labels": {
                    "app": "seldon-apiserver-container-app",
                    "app.kubernetes.io/component": "seldon-core-apiserver",
                    "app.kubernetes.io/name": "RELEASE-NAME",
                    "chart": "seldon-core-0.2.3",
                    "component": "seldon-core",
                    "heritage": "Tiller",
                    "release": "RELEASE-NAME"
                }
            },
            "spec": {
                "replicas": 1,
                "selector": {
                    "matchLabels": {
                        "app": "seldon-apiserver-container-app",
                        "app.kubernetes.io/component": "seldon-core-apiserver",
                        "app.kubernetes.io/name": "RELEASE-NAME",
                        "chart": "seldon-core-0.2.3",
                        "component": "seldon-core",
                        "heritage": "Tiller",
                        "release": "RELEASE-NAME"
                    }
                },
                "template": {
                    "metadata": {
                        "creationTimestamp": null,
                        "labels": {
                            "app": "seldon-apiserver-container-app",
                            "app.kubernetes.io/component": "seldon-core-apiserver",
                            "app.kubernetes.io/name": "RELEASE-NAME",
                            "chart": "seldon-core-0.2.3",
                            "component": "seldon-core",
                            "heritage": "Tiller",
                            "release": "RELEASE-NAME"
                        },
                        "annotations": {
                            "prometheus.io/path": "/prometheus",
                            "prometheus.io/port": "8080",
                            "prometheus.io/scrape": "true"
                        }
                    },
                    "spec": {
                        "volumes": [
                            {
                                "name": "podinfo",
                                "downwardAPI": {
                                    "items": [
                                        {
                                            "path": "annotations",
                                            "fieldRef": {
                                                "apiVersion": "v1",
                                                "fieldPath": "metadata.annotations"
                                            }
                                        }
                                    ],
                                    "defaultMode": 420
                                }
                            }
                        ],
                        "containers": [
                            {
                                "name": "seldon-apiserver-container",
                                "image": "seldonio/apife:0.2.3",
                                "ports": [
                                    {
                                        "containerPort": 8080,
                                        "protocol": "TCP"
                                    },
                                    {
                                        "containerPort": 5000,
                                        "protocol": "TCP"
                                    }
                                ],
                                "env": [
                                    {
                                        "name": "SELDON_ENGINE_KAFKA_SERVER",
                                        "value": "kafka:9092"
                                    },
                                    {
                                        "name": "SELDON_CLUSTER_MANAGER_REDIS_HOST",
                                        "value": "RELEASE-NAME-redis"
                                    },
                                    {
                                        "name": "SELDON_CLUSTER_MANAGER_POD_NAMESPACE",
                                        "valueFrom": {
                                            "fieldRef": {
                                                "apiVersion": "v1",
                                                "fieldPath": "metadata.namespace"
                                            }
                                        }
                                    }
                                ],
                                "resources": {},
                                "volumeMounts": [
                                    {
                                        "name": "podinfo",
                                        "mountPath": "/etc/podinfo"
                                    }
                                ],
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File",
                                "imagePullPolicy": "IfNotPresent",
                                "securityContext": {
                                    "runAsUser": 8888,
                                    "procMount": null
                                }
                            }
                        ],
                        "restartPolicy": "Always",
                        "terminationGracePeriodSeconds": 30,
                        "dnsPolicy": "ClusterFirst",
                        "serviceAccountName": "seldon",
                        "serviceAccount": "seldon",
                        "securityContext": {},
                        "schedulerName": "default-scheduler"
                    }
                },
                "strategy": {
                    "type": "RollingUpdate",
                    "rollingUpdate": {
                        "maxUnavailable": "25%",
                        "maxSurge": "25%"
                    }
                },
                "revisionHistoryLimit": 2,
                "progressDeadlineSeconds": 600
            },
            "status": {}
        },
        {
            "kind": "Service",
            "apiVersion": "v1",
            "metadata": {
                "name": "RELEASE-NAME-seldon-apiserver",
                "creationTimestamp": null,
                "labels": {
                    "app": "seldon-apiserver-container-app",
                    "app.kubernetes.io/component": "seldon-core-apiserver",
                    "app.kubernetes.io/name": "RELEASE-NAME"
                }
            },
            "spec": {
                "ports": [
                    {
                        "name": "http",
                        "protocol": "TCP",
                        "port": 8080,
                        "targetPort": 8080
                    },
                    {
                        "name": "grpc",
                        "protocol": "TCP",
                        "port": 5000,
                        "targetPort": 5000
                    }
                ],
                "selector": {
                    "app": "seldon-apiserver-container-app"
                },
                "type": "NodePort",
                "sessionAffinity": "None",
                "externalTrafficPolicy": "Cluster"
            },
            "status": {
                "loadBalancer": {}
            }
        },
        {
            "kind": "Deployment",
            "apiVersion": "apps/v1",
            "metadata": {
                "name": "RELEASE-NAME-seldon-cluster-manager",
                "creationTimestamp": null,
                "labels": {
                    "app": "seldon-cluster-manager-server",
                    "app.kubernetes.io/component": "seldon-core-operator",
                    "app.kubernetes.io/name": "RELEASE-NAME",
                    "chart": "seldon-core-0.2.3",
                    "component": "seldon-core",
                    "heritage": "Tiller",
                    "release": "RELEASE-NAME"
                }
            },
            "spec": {
                "replicas": 1,
                "selector": {
                    "matchLabels": {
                        "app": "seldon-cluster-manager-server",
                        "app.kubernetes.io/component": "seldon-core-operator",
                        "app.kubernetes.io/name": "RELEASE-NAME",
                        "chart": "seldon-core-0.2.3",
                        "component": "seldon-core",
                        "heritage": "Tiller",
                        "release": "RELEASE-NAME"
                    }
                },
                "template": {
                    "metadata": {
                        "creationTimestamp": null,
                        "labels": {
                            "app": "seldon-cluster-manager-server",
                            "app.kubernetes.io/component": "seldon-core-operator",
                            "app.kubernetes.io/name": "RELEASE-NAME",
                            "chart": "seldon-core-0.2.3",
                            "component": "seldon-core",
                            "heritage": "Tiller",
                            "release": "RELEASE-NAME"
                        }
                    },
                    "spec": {
                        "containers": [
                            {
                                "name": "seldon-cluster-manager-container",
                                "image": "seldonio/cluster-manager:0.2.3",
                                "ports": [
                                    {
                                        "containerPort": 8080,
                                        "protocol": "TCP"
                                    }
                                ],
                                "env": [
                                    {
                                        "name": "JAVA_OPTS"
                                    },
                                    {
                                        "name": "SPRING_OPTS"
                                    },
                                    {
                                        "name": "SELDON_CLUSTER_MANAGER_REDIS_HOST",
                                        "value": "RELEASE-NAME-redis"
                                    },
                                    {
                                        "name": "ENGINE_CONTAINER_IMAGE_AND_VERSION",
                                        "value": "seldonio/engine:0.2.3"
                                    },
                                    {
                                        "name": "ENGINE_CONTAINER_IMAGE_PULL_POLICY",
                                        "value": "IfNotPresent"
                                    },
                                    {
                                        "name": "SELDON_CLUSTER_MANAGER_POD_NAMESPACE",
                                        "valueFrom": {
                                            "fieldRef": {
                                                "apiVersion": "v1",
                                                "fieldPath": "metadata.namespace"
                                            }
                                        }
                                    }
                                ],
                                "resources": {},
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File",
                                "imagePullPolicy": "IfNotPresent",
                                "securityContext": {
                                    "runAsUser": 8888,
                                    "procMount": null
                                }
                            }
                        ],
                        "restartPolicy": "Always",
                        "terminationGracePeriodSeconds": 1,
                        "dnsPolicy": "ClusterFirst",
                        "serviceAccountName": "seldon",
                        "serviceAccount": "seldon",
                        "securityContext": {},
                        "schedulerName": "default-scheduler"
                    }
                },
                "strategy": {
                    "type": "RollingUpdate",
                    "rollingUpdate": {
                        "maxUnavailable": 1,
                        "maxSurge": 1
                    }
                },
                "progressDeadlineSeconds": 2147483647
            },
            "status": {}
        },
        {
            "kind": "Deployment",
            "apiVersion": "apps/v1",
            "metadata": {
                "name": "RELEASE-NAME-redis",
                "creationTimestamp": null,
                "labels": {
                    "app": "RELEASE-NAME-redis-app",
                    "app.kubernetes.io/component": "seldon-core-redis",
                    "app.kubernetes.io/name": "RELEASE-NAME",
                    "chart": "seldon-core-0.2.3",
                    "component": "seldon-core",
                    "heritage": "Tiller",
                    "release": "RELEASE-NAME"
                }
            },
            "spec": {
                "replicas": 1,
                "selector": {
                    "matchLabels": {
                        "app": "RELEASE-NAME-redis-app",
                        "app.kubernetes.io/component": "seldon-core-redis",
                        "app.kubernetes.io/name": "RELEASE-NAME",
                        "chart": "seldon-core-0.2.3",
                        "component": "seldon-core",
                        "heritage": "Tiller",
                        "release": "RELEASE-NAME"
                    }
                },
                "template": {
                    "metadata": {
                        "creationTimestamp": null,
                        "labels": {
                            "app": "RELEASE-NAME-redis-app",
                            "app.kubernetes.io/component": "seldon-core-redis",
                            "app.kubernetes.io/name": "RELEASE-NAME",
                            "chart": "seldon-core-0.2.3",
                            "component": "seldon-core",
                            "heritage": "Tiller",
                            "release": "RELEASE-NAME"
                        }
                    },
                    "spec": {
                        "containers": [
                            {
                                "name": "redis-container",
                                "image": "redis:4.0.1",
                                "ports": [
                                    {
                                        "containerPort": 6379,
                                        "protocol": "TCP"
                                    }
                                ],
                                "resources": {},
                                "terminationMessagePath": "/dev/termination-log",
                                "terminationMessagePolicy": "File",
                                "imagePullPolicy": "IfNotPresent"
                            }
                        ],
                        "restartPolicy": "Always",
                        "terminationGracePeriodSeconds": 30,
                        "dnsPolicy": "ClusterFirst",
                        "securityContext": {},
                        "schedulerName": "default-scheduler"
                    }
                },
                "strategy": {
                    "type": "RollingUpdate",
                    "rollingUpdate": {
                        "maxUnavailable": 1,
                        "maxSurge": 1
                    }
                },
                "progressDeadlineSeconds": 2147483647
            },
            "status": {}
        },
        {
            "kind": "Service",
            "apiVersion": "v1",
            "metadata": {
                "name": "RELEASE-NAME-redis",
                "creationTimestamp": null,
                "labels": {
                    "app.kubernetes.io/component": "seldon-core-redis",
                    "app.kubernetes.io/name": "RELEASE-NAME"
                }
            },
            "spec": {
                "ports": [
                    {
                        "protocol": "TCP",
                        "port": 6379,
                        "targetPort": 6379
                    }
                ],
                "selector": {
                    "app": "RELEASE-NAME-redis-app"
                },
                "type": "ClusterIP",
                "sessionAffinity": "None"
            },
            "status": {
                "loadBalancer": {}
            }
        }
    ]
}
