mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Helper to transfer data to CephFs and setup wikis
This commit is contained in:
parent
80321d5ec9
commit
d77f2ef548
10 changed files with 163 additions and 39 deletions
60
roles/k8s-utils/files/run_sshd_pod.sh
Normal file
60
roles/k8s-utils/files/run_sshd_pod.sh
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
'
|
||||
Loading…
Add table
Add a link
Reference in a new issue