Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configmap type volume gets mounted as EmptyDir #59

Open
bainiu87 opened this issue Jun 7, 2018 · 0 comments
Open

configmap type volume gets mounted as EmptyDir #59

bainiu87 opened this issue Jun 7, 2018 · 0 comments

Comments

@bainiu87
Copy link

bainiu87 commented Jun 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant