Helper to transfer data to CephFs and setup wikis

This commit is contained in:
Paul-Henri Froidmont 2019-09-01 03:41:21 +02:00
parent 80321d5ec9
commit d77f2ef548
10 changed files with 163 additions and 39 deletions

View file

@ -0,0 +1,60 @@
kubectl run sshd-data --image=panubo/sshd --rm -ti --restart=Never --overrides='
{
"metadata": {
"labels": {
"app": "sshd-data"
}
},
"spec": {
"containers": [
{
"stdin": true,
"tty": true,
"name": "sshd-data",
"image": "panubo/sshd",
"env": [
{
"name":"SSH_USERS",
"value":"storage1:1042:1042"
},
{
"name":"SSH_ENABLE_ROOT",
"value":"true"
}
],
"volumeMounts": [
{
"name": "data",
"mountPath": "/data"
},
{
"name": "authorized-keys",
"mountPath": "/etc/authorized_keys/root",
"subPath": "root"
}
]
}
],
"volumes": [
{
"name": "data",
"flexVolume": {
"driver": "ceph.rook.io/rook",
"fsType": "ceph",
"options": {
"fsName": "ceph-fs",
"clusterNamespace" : "rook-ceph"
}
}
},
{
"name": "authorized-keys",
"configMap": {
"name": "sshd-authorized-keys",
"defaultMode": 420
}
}
]
}
}
'