Fixed conflict with service links
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m29s
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m29s
This commit is contained in:
parent
13f27ef878
commit
b3efd37bcc
|
@ -10,6 +10,6 @@ spec:
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: http
|
- name: http
|
||||||
port: 3000
|
port: http
|
||||||
tls:
|
tls:
|
||||||
secretName: tunnel-tls
|
secretName: tunnel-tls
|
||||||
|
|
|
@ -4,9 +4,8 @@ metadata:
|
||||||
name: http
|
name: http
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "3000"
|
- name: http
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
|
||||||
selector:
|
selector:
|
||||||
app: siranga
|
app: siranga
|
||||||
---
|
---
|
||||||
|
@ -19,7 +18,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
ports:
|
ports:
|
||||||
- name: "2222"
|
- name: ssh
|
||||||
port: 22
|
port: 22
|
||||||
targetPort: 2222
|
targetPort: 2222
|
||||||
selector:
|
selector:
|
||||||
|
|
14
src/main.rs
14
src/main.rs
|
@ -44,11 +44,17 @@ async fn main() -> color_eyre::Result<()> {
|
||||||
russh::keys::PrivateKey::random(&mut OsRng, russh::keys::Algorithm::Ed25519)?
|
russh::keys::PrivateKey::random(&mut OsRng, russh::keys::Algorithm::Ed25519)?
|
||||||
};
|
};
|
||||||
|
|
||||||
let http_port = std::env::var("HTTP_PORT")
|
let http_port = std::env::var("HTTP_SERVICE_PORT")
|
||||||
.map(|port| port.parse().wrap_err_with(|| format!("HTTP_PORT={port}")))
|
.map(|port| {
|
||||||
|
port.parse()
|
||||||
|
.wrap_err_with(|| format!("HTTP_SERVICE_PORT={port}"))
|
||||||
|
})
|
||||||
.unwrap_or(Ok(3000))?;
|
.unwrap_or(Ok(3000))?;
|
||||||
let ssh_port = std::env::var("SSH_PORT")
|
let ssh_port = std::env::var("SSH_SERVICE_PORT")
|
||||||
.map(|port| port.parse().wrap_err_with(|| format!("SSH_PORT={port}")))
|
.map(|port| {
|
||||||
|
port.parse()
|
||||||
|
.wrap_err_with(|| format!("SSH_SERVICE_PORT={port}"))
|
||||||
|
})
|
||||||
.unwrap_or(Ok(2222))?;
|
.unwrap_or(Ok(2222))?;
|
||||||
|
|
||||||
let domain =
|
let domain =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user