/run/secrets not mounted on 1.4.1

Hello,

I have a problem to mount secrets volume to container

My steps

  1. installed rancher server (1.4.1)
  2. custom added agent
  3. created secrets in rancher
  4. created container in rancher with assigned secret

Expecting
/run/secrects/ to contain passwords in container

Actual result
/run/secrets does not even exists

in api view i see secret to be assigned but I cannot find it inside container (using redis:3.0.7 as an example). Container is running.

“secrets”: [
{
“type”: “secretReference”,
“gid”: “0”,
“mode”: “444”,
“name”: “m”,
“secretId”: “1se3”,
“uid”: “0”
}
],

So my question is: Do I miss something in the process ? Maybe I have missed something crucial.
I have no other extension installed, just out of the box rancher, no vault …

rancher/agent:v1.2.0
rancher/server:1.4.1
rancher/scheduler:v0.6.3
rancher/net:v0.8.7
rancher/net:holder
rancher/healthcheck:v0.2.3
rancher/dns:v0.13.3
rancher/metadata:v0.7.0
rancher/network-manager:v0.4.5

Best

You need the secrets catalog item to deploy the volume driver that makes them actually available in a container.

2 Likes

I have missed that one, Thank you :wink: