You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc <Ma...@f1-outsourcing.eu> on 2021/03/03 22:11:24 UTC
no environment variables in standalone container
I am testing a bit with the standalone containers used for csi. But it looks like these variables are not available. Do I have to enable something on the slave or so? Or is this config not correct?
{
"type": "rbd.csi.ceph.io",
"uris": [
{ "value": "file:///usr/libexec/csi/config.json", "cache": false }
],
"environment": {
"variables": [
{"name":"CSI_DEFUSERID","type":"VALUE","value":"aaaa"},
{"name":"CSI_DEFUSERKEY","type":"VALUE","value":"xxxx"}
]},
"containers": [
{
"services": [ "NODE_SERVICE" ],
"command": {
"value": "/usr/libexec/csi/csiceph -endpoint $CSI_ENDPOINT -nodeid $HOSTNAME -type rbd -drivername ceph-csi-rbd -v 10 -log_file=./csiceph-plugin.log -logtostderr=false"
},
"resources": [
{"name": "cpus", "type": "SCALAR", "scalar": {"value": 0.1}},
{"name": "mem", "type": "SCALAR", "scalar": {"value": 256}},
{"name": "disk", "type": "SCALAR", "scalar": {"value": 10}}
]
}
]
}