Skip to content

Commit

Permalink
fix entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-Delange committed Oct 24, 2024
1 parent 14bcd21 commit 0f95b32
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
45 changes: 23 additions & 22 deletions kubernetes/marble/marble-cron/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: {{ .Values.namespace }}
name: {{ .Values.deployment.name }}
namespace: { { .Values.namespace } }
name: { { .Values.deployment.name } }
spec:
replicas: {{ .Values.deployment.replicas }}
replicas: { { .Values.deployment.replicas } }
selector:
matchLabels:
app: {{ .Values.deployment.name }}
app: { { .Values.deployment.name } }
template:
metadata:
labels:
app: {{ .Values.deployment.name }}
app: { { .Values.deployment.name } }
spec:
containers:
- name: {{ .Values.deployment.name }}
image: "{{ .Values.deployment.container.image }}:{{ .Values.global.deployment.marbleBack.version }}"
command: ["./app"]
args: ["--cron-scheduler"]
envFrom:
- configMapRef:
name: {{ .Values.configMap.name }}
resources:
requests:
memory: {{ .Values.deployment.container.requests.memory }}
cpu: {{ .Values.deployment.container.requests.cpu }}
limits:
memory: {{ .Values.deployment.container.limits.memory }}
cpu: {{ .Values.deployment.container.limits.cpu }}
imagePullPolicy: {{ .Values.deployment.container.imagePullPolicy }}
- name: { { .Values.deployment.name } }
image: "{{ .Values.deployment.container.image }}:{{ .Values.global.deployment.marbleBack.version }}"
command: ["./app"]
args: ["--worker"]
envFrom:
- configMapRef:
name: { { .Values.configMap.name } }
resources:
requests:
memory: { { .Values.deployment.container.requests.memory } }
cpu: { { .Values.deployment.container.requests.cpu } }
limits:
memory: { { .Values.deployment.container.limits.memory } }
cpu: { { .Values.deployment.container.limits.cpu } }
imagePullPolicy: { { .Values.deployment.container.imagePullPolicy } }

ports:
- containerPort: {{ .Values.deployment.container.ports.containerPort }}
ports:
- containerPort:
{ { .Values.deployment.container.ports.containerPort } }
2 changes: 1 addition & 1 deletion terraform_templates/AWS/esc_tasks_definition.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ resource "aws_ecs_task_definition" "app" {
image = local.environment.backend.image,
essential = true,

entryPoint : ["./app", "--cron-scheduler"],
entryPoint : ["./app", "--worker"],

environment = [
{ name = "ENV", value = "production" },
Expand Down

0 comments on commit 0f95b32

Please sign in to comment.