diff --git a/bootstrap/stage2/control-plane.tf b/bootstrap/stage2/control-plane.tf index 191b685..a3cd89b 100644 --- a/bootstrap/stage2/control-plane.tf +++ b/bootstrap/stage2/control-plane.tf @@ -36,7 +36,7 @@ resource "kubernetes_deployment_v1" "control_plane" { image = var.control_plane_image name = "main" - args = ["control-plane"] + command = ["rpc"] env { name = "K8S_IN_CLUSTER" diff --git a/bootstrap/stage2/deployment.tf b/bootstrap/stage2/deployment.tf index 97c7dca..abc42d8 100644 --- a/bootstrap/stage2/deployment.tf +++ b/bootstrap/stage2/deployment.tf @@ -32,8 +32,9 @@ resource "kubernetes_deployment_v1" "operator" { spec { container { - image = var.operator_image - name = "main" + image = var.operator_image + name = "main" + command = ["operator"] env { name = "K8S_IN_CLUSTER" diff --git a/crates/operator/src/custom_resource.rs b/crates/operator/src/custom_resource.rs index 917a294..913f771 100644 --- a/crates/operator/src/custom_resource.rs +++ b/crates/operator/src/custom_resource.rs @@ -270,8 +270,8 @@ impl HydraDoomNode { Container { name: "sidecar".to_string(), image: Some(config.sidecar_image.clone()), + command: Some(vec!["metrics-exporter".to_string()]), args: Some(vec![ - "metrics-exporter".to_string(), "--host".to_string(), "localhost".to_string(), "--port".to_string(), @@ -312,6 +312,7 @@ impl HydraDoomNode { containers.push(Container { name: "open-head".to_string(), image: Some(config.open_head_image.clone()), + command: Some(vec!["open-head".to_string()]), args: Some(open_head_args), volume_mounts: Some(vec![ VolumeMount {