所有
使用1.6.6版本我正在尝试使用this guide
部署K8联盟我使用下面的命令在k8s群集中创建联合组件。
library("magrittr")
possible_choices <- c("choice1","choice2","choice3","choice4","choice5","choice6")
df1 <- data.frame(choices =c("choice1|choice3|choice6","choice1|choice2|choice3"),stringsAsFactors = FALSE)
# > df1
# choices
# 1 choice1|choice3|choice6
# 2 choice1|choice2|choice3
output <- df1$choices %>%
strsplit("\\|") %>%
lapply(. %>% sapply(`==`,possible_choices)) %>%
lapply(. %>% apply(1,any)) %>%
do.call(rbind,.) %>%
as.data.frame %>%
setNames(possible_choices)
# choice1 choice2 choice3 choice4 choice5 choice6
# 1 TRUE FALSE TRUE FALSE FALSE TRUE
# 2 TRUE TRUE TRUE FALSE FALSE FALSE
这就是发生的事情
kubefed -v=9 init fellowship --dns-provider="kube-dns" --dns-zone-name="example.com" --host-cluster-context="kubernetes-admin@kubernetes" --api-server-service-type="NodePort" --api-server-advertise-address="xx.yy.zz.aa" --etcd-persistent-storage=false --kubeconfig="/etc/kubernetes/admin.conf"
猜猜这里发生了什么,我错过了什么吗?