SeldonIO / seldon-server

Machine Learning Platform and Recommendation Engine built on Kubernetes
https://www.seldon.io/
Apache License 2.0
1.47k stars 300 forks source link

configmap type volume gets mounted as EmptyDir #59

Open bainiu87 opened 6 years ago

bainiu87 commented 6 years ago

create file: { "apiVersion": "machinelearning.seldon.io/v1alpha1", "kind": "SeldonDeployment", "metadata": { "labels": { "app": "seldon" }, "name": "graph-baiyun" }, "spec": { "annotations": { "project_name": "baiyun", "deployment_version": "v0.1" }, "name": "graph-baiyun", "oauth_key": "baiyun", "oauth_secret": "yunbai",

    "predictors": [
        {
            "componentSpec": {
                "spec": {
                    "containers": [
                        {
                            "image": "cr.d.xiaomi.net/baiyun/seldon-server-base:0.2",
                            "imagePullPolicy": "IfNotPresent",
                            "name": "graph-regression",
                            "volumeMounts": [
                                {
                                    "name": "entrypoint",
                                    "mountPath": "/microservice"
                                }
                            ],
                            "command": ["/tmp/microservice/Ingress.sh"],
                            "resources": {
                                "requests": {
                                    "memory": "100Mi"
                                }
                            }
                        }
                    ],
                    "terminationGracePeriodSeconds": 20,
                    "volumes": [
                        {
                            "name": "entrypoint",
                            "configMap":{
                                        "name": "seldon-magic",
                                        "defaultMode": 420
                                    }
                        }
                    ]
                }
            },
            "graph": {
                "children": [],
                "name": "graph-regression",
                "endpoint": {
        "type" : "REST"
        },
                "type": "MODEL"
            },
            "name": "baiyun",
            "replicas": 1,
    "annotations": {
        "predictor_version" : "v0.1"
    }
        }
    ]
}

} result: kubectl describe po xxx -n seldon: Volumes: entrypoint: Type: EmptyDir (a temporary directory that shares a pod's lifetime) Medium: default-token-scs3c: Type: Secret (a volume populated by a Secret) SecretName: default-token-scs3c Optional: false