|
|
@ -201,7 +201,7 @@
|
|
|
|
// This function generates deployments for each service, since they only differ slightly,
|
|
|
|
// This function generates deployments for each service, since they only differ slightly,
|
|
|
|
// with only a different image, CLI args and possibly env vars.
|
|
|
|
// with only a different image, CLI args and possibly env vars.
|
|
|
|
// The image name is derived from the component name
|
|
|
|
// The image name is derived from the component name
|
|
|
|
// (eg. "downloader" is ghcr.io/ekimekim/wubloader-downloader)
|
|
|
|
// (eg. "downloader" is ghcr.io/dbvideostriketeam/wubloader-downloader)
|
|
|
|
// so we only pass in name as a required arg.
|
|
|
|
// so we only pass in name as a required arg.
|
|
|
|
// Optional kwargs work just like python.
|
|
|
|
// Optional kwargs work just like python.
|
|
|
|
deployment(name, args=[], env=[], volumes=[], volumeMounts=[]):: {
|
|
|
|
deployment(name, args=[], env=[], volumes=[], volumeMounts=[]):: {
|
|
|
@ -226,7 +226,7 @@
|
|
|
|
name: name,
|
|
|
|
name: name,
|
|
|
|
// segment-coverage is called segment_coverage in the image, so replace - with _
|
|
|
|
// segment-coverage is called segment_coverage in the image, so replace - with _
|
|
|
|
// ditto for playlist-manager
|
|
|
|
// ditto for playlist-manager
|
|
|
|
image: "ghcr.io/ekimekim/wubloader-%s:%s" % [std.strReplace(name, "-", "_"), $.config.image_tag],
|
|
|
|
image: "ghcr.io/dbvideostriketeam/wubloader-%s:%s" % [std.strReplace(name, "-", "_"), $.config.image_tag],
|
|
|
|
args: args,
|
|
|
|
args: args,
|
|
|
|
volumeMounts: [{name: "data", mountPath: "/mnt"}] + volumeMounts,
|
|
|
|
volumeMounts: [{name: "data", mountPath: "/mnt"}] + volumeMounts,
|
|
|
|
env: $.env_list + env, // main env list combined with any deployment-specific ones
|
|
|
|
env: $.env_list + env, // main env list combined with any deployment-specific ones
|
|
|
@ -279,7 +279,7 @@
|
|
|
|
containers: [
|
|
|
|
containers: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: name,
|
|
|
|
name: name,
|
|
|
|
image: "ghcr.io/ekimekim/wubloader-%s:%s" % [name, $.config.database_tag],
|
|
|
|
image: "ghcr.io/dbvideostriketeam/wubloader-%s:%s" % [name, $.config.database_tag],
|
|
|
|
args: args,
|
|
|
|
args: args,
|
|
|
|
env: $.env_list + env, // main env list combined with any statefulset-specific ones
|
|
|
|
env: $.env_list + env, // main env list combined with any statefulset-specific ones
|
|
|
|
volumeMounts: [
|
|
|
|
volumeMounts: [
|
|
|
|