feat: swap for - instead

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-02-03 19:34:09 +01:00
parent a4092639d1
commit 91d0c2347c
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,7 @@
use std::sync::Arc;
use async_trait::async_trait;
use cuddle_ci::cuddle_file::CuddleFile;
use cuddle_ci::cuddle_releaser::CuddleReleaser;
use cuddle_ci::rust_service::architecture::{Architecture, Os};
use cuddle_ci::rust_service::RustService;
@ -11,6 +12,7 @@ use tokio::sync::Mutex;
#[tokio::main]
async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
let cuddle_file = CuddleFile::from_cuddle_file().await?;
let service = RustService::from(client.clone())
.with_arch(Architecture::Amd64)
@ -18,9 +20,9 @@ async fn main() -> eyre::Result<()> {
.with_apt(&["libssl-dev", "libz-dev", "libpq-dev"])
.with_apt_release(&["libssl-dev", "libz-dev", "libpq-dev"])
.with_apt_ca_certificates()
.with_crates(["ci", "crates/*"])
.with_crates(["crates/*"])
.with_mold("2.3.3")
.with_bin_name("cuddle-rust-service-plan")
.with_bin_name(cuddle_file.vars.service)
.with_deployment(false)
.to_owned();

View File

@ -13,8 +13,8 @@ spec:
image: "deployment:latest"
ports:
- containerPort: 3000
name: external_http
name: external-http
- containerPort: 3001
name: internal_http
name: internal-http
- containerPort: 3002
name: internal_grpc
name: internal-grpc

View File

@ -5,13 +5,13 @@ metadata:
spec:
type: LoadBalancer
ports:
- name: external_http
- name: external-http
port: 3000
targetPort: 3000
- name: internal_http
- name: internal-http
port: 3001
targetPort: 3001
- name: internal_grpc
- name: internal-grpc
port: 3002
targetPort: 3002