refactor code
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m20s
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Has been skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 48s
Deploy k8s Infra / Pulumi Deploy (pull_request) Has been skipped
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 42s
Deploy k8s Apps / Pulumi Deploy (pull_request) Has been skipped
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 49s
Deploy Monitoring / Pulumi Deploy (pull_request) Has been skipped

This commit is contained in:
2026-06-12 18:33:09 +02:00
parent 13549a8d37
commit 6753be7f09
5 changed files with 22 additions and 18 deletions
+5 -5
View File
@@ -16,7 +16,7 @@ const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
...extras,
});
const ns = new k8s.core.v1.Namespace(
const heimdallNs = new k8s.core.v1.Namespace(
"heimdall",
{ metadata: { name: "heimdall" } },
opts(),
@@ -25,7 +25,7 @@ const ns = new k8s.core.v1.Namespace(
const pvc = new k8s.core.v1.PersistentVolumeClaim(
"heimdall-config",
{
metadata: { name: "heimdall-config", namespace: ns.metadata.name },
metadata: { name: "heimdall-config", namespace: heimdallNs.metadata.name },
spec: {
accessModes: ["ReadWriteOnce"],
storageClassName: "longhorn",
@@ -42,7 +42,7 @@ new k8s.apps.v1.Deployment(
{
metadata: {
name: "heimdall",
namespace: ns.metadata.name,
namespace: heimdallNs.metadata.name,
annotations: { "pulumi.com/patchForce": "true" },
},
spec: {
@@ -80,7 +80,7 @@ new k8s.apps.v1.Deployment(
const svc = new k8s.core.v1.Service(
"heimdall",
{
metadata: { name: "heimdall", namespace: ns.metadata.name },
metadata: { name: "heimdall", namespace: heimdallNs.metadata.name },
spec: {
selector: labels,
ports: [{ port: 80, targetPort: 80 }],
@@ -97,7 +97,7 @@ new k8s.networking.v1.Ingress(
{
metadata: {
name: "heimdall",
namespace: ns.metadata.name,
namespace: heimdallNs.metadata.name,
annotations: {
"cert-manager.io/cluster-issuer": "letsencrypt-prod",
},