在K8s中安装订单

时间:2019-01-17 15:13:57

标签: kubernetes

我有一组yaml文件,它们的种类不同

1个PVC

1 PV(以上PVC称该PV)

1服务

1个StatefulSet对象(以上服务用于此有状态集

1 Config Map(上面的有状态集合使用此Config Map

使用这些对象启动应用程序时,这些对象的安装顺序是否重要?

1 个答案:

答案 0 :(得分:2)

如果您在包含所有这些文件的目录上执行library(ggplot2) library(testthat) # Create example data and plots df <- data.frame( x = c(1, 2, 3, 1, 4, 5, 6, 4), y = c(1, 2, 1, 1, 1, 2, 1, 1), z = rep(1:2, each = 4), group = rep(letters[1:2], each = 4)) my_plot <- ggplot(df, aes(x = x, y = y, group = group, fill = z )) + geom_polygon() + scale_fill_continuous(name = expression("Legend name"^2), low = "skyblue", high = "orange") my_wrong_plot <- ggplot(df, aes(x = x, y = y, group = group, fill = z)) + geom_polygon() + scale_fill_continuous(name = expression("Wrong name"^2), low = "skyblue", high = "orange") # Example tests that work test_that("plot is drawn correctly", { expect_identical( deparse(my_plot$mapping$group), deparse(my_wrong_plot$mapping$group), info = 'The `group` aesthetic is incorrect.' ) expect_identical( deparse(my_plot$mapping$fill), deparse(my_wrong_plot$mapping$fill), info = 'The `fill` aesthetic is incorrect.' ) expect_identical( class(my_plot$layers[[1]]$geom)[1], class(my_wrong_plot$layers[[1]]$geom)[1], info = 'There is no polygon layer.' ) expect_identical( layer_data(my_plot), layer_data(my_wrong_plot), info = "The `scale_fill_continuous()` data is incorrect." ) }) ,则它应该可以工作,至少如果您的最新版本为ggplot2 unit tests

但是,有些依赖不是硬依赖和there have been bugs raised and addressed in this area。因此,有些人选择for which there is discussion或使用诸如order the resources themselves资源helm which deploys之类的部署工具。