在Kubernetes Pod使用大型文件之前,将大型文件预加载到本地PersistentVolume SSD的最佳方法是什么?
目标是拥有多个Pod(可以是同一Pod的多个实例,也可以是不同的),以只读模式共享相同的本地SSD驱动器。该驱动器将需要使用大型数据集进行初始化。
Google Local SSD docs描述了<?php
$fruits = array(
array(
'name' => 'Banana',
'continent' => 'Africa',
'counts' => array(
'standard' => 15,
'advanced' => 20
)
),
array(
'name' => 'Apple',
'continent' => 'Europa',
'counts' => array(
'standard' => 25,
'advanced' => 25
)
)
);
//In Europa, I can find 25 standard Apple.
$key = array_keys($fruits[1]['counts'])[0];
echo "In {$fruits[1]['continent']}, I can find {$fruits[1]['counts']['standard']} {$key} {$fruits[1]['name']}";
?>
,但是这种方法只会创建一个PersistedVolume,而不会初始化它。
答案 0 :(得分:1)
基本上,您可以将library(mailR)
library(shiny)
ui <- fluidPage(
actionButton("sendMail","Send Mail")
)
server <- function(input, output) {
observeEvent(input$sendMail,
{
sender <- "FROM@gmail.com"
recipients <- c("TO@gmail.com")
body.string <- "words words words words words punchline"
send.mail(from = sender,
to = recipients,
subject = "***STOPLOSS ALERT***",
body = body.string,
smtp = list(host.name = "smtp.gmail.com", port = 465,
user.name = "FROM@gmail",
passwd = "******", ssl = TRUE),
authenticate = TRUE,
send = TRUE)
}
)
}
shinyApp(ui = ui, server = server)
容器添加到用于初始化SSD的容器中:添加数据等。
init