feat: allow exposing non-web processes as kubernetes services

Closes #7204
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-11-22 19:39:56 -05:00
1 parent 72c519f7b3
commit 0c96c4b6de
6 files changed
+140

No files matched your search

@@ -64,7 +64,11 @@ spec:
{{- if hasKey $config "web" }}
env:
- name: PORT
{{- if eq $processName "web" }}
value: "{{ $.Values.global.network.primary_port }}"
{{- else }}
value: "5000"
{{- end }}
{{- end }}
envFrom:
- secretRef:
+16
View File
@@ -623,6 +623,22 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
}
sort.Sort(NameSorter(processValues.Web.PortMaps))
} else if appJSON.Formation[processType].Service != nil && appJSON.Formation[processType].Service.Exposed {
processValues.Web = ProcessWeb{
Domains: []ProcessDomains{},
PortMaps: []ProcessPortMap{},
TLS: ProcessTls{
Enabled: false,
},
}
processValues.Web.PortMaps = append(processValues.Web.PortMaps, ProcessPortMap{
ContainerPort: 5000,
HostPort: 5000,
Name: "http-5000-5000",
Protocol: PortmapProtocol_TCP,
Scheme: "http",
})
}
values.Processes[processType] = processValues