Skip to content

configmap type volume gets mounted as EmptyDir #59

@bainiu87

Description

@bainiu87

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions