例如,我有一个 Kubernetes 作业,它的并行度设置为 4。创建此作业时,我可能希望将其扩展到 8。但似乎editing 作业并将并行度设置为 8 并没有实际上在 Job 中创建更多的 pod。
我错过了什么吗?或者有没有办法扩展工作?
对于Prometheus中的特定工作,似乎典型的配置如下所示:
static_configs:
- targets: ['localhost:9090']
Run Code Online (Sandbox Code Playgroud)
但是,如果我想要一个动态的主机列表,那该怎么办?我一直在看,scrape_config但是那似乎并没有完成我的追求(除非我读错了?)。
先感谢您!
查看:Registration.cshtml
@model MyNameSpace.Models.NewPatientRegistrationViewModel
<div> ... All the HTML </div>
Run Code Online (Sandbox Code Playgroud)
型号:AccountViewModels.cs
namespace MyNameSpace.Models
{
public class RegistrationViewModel
{
[Display(Name = "Date of Birth")]
public string DOB { get; set; }
public int DOBYear { get; set; }
public int DOBMonth { get; set; }
public int DOBDay { get; set; }
public NewPatientRegistrationViewModel() { }
}
}
Run Code Online (Sandbox Code Playgroud)
控制器:AccountControllers.cs
public ActionResult Registration()
{
return View();
}
Run Code Online (Sandbox Code Playgroud)
在视图中,对@Model的引用为null,并引发null异常错误。还是MVC的新手...我确定我缺少明显的东西。
我知道我可以通过以下方式添加方法:
point.prototype.move = function ()
{
this.x += 1;
}
Run Code Online (Sandbox Code Playgroud)
但是,有没有办法通过将一个在其外部声明的函数分配给它的一个属性来向类添加方法? 我很确定这不起作用,但它给出了我想要做的事情的想法:
function point(x, y)
{
this.x = x;
this.y = y;
this.move = move();
}
function move()
{
this.x += 1;
}
Run Code Online (Sandbox Code Playgroud)