kubernetes deployments for varnish & app

This commit is contained in:
2025-09-04 01:25:36 +02:00
parent 630ceb2473
commit d0e107f644
2 changed files with 12 additions and 15 deletions

View File

@@ -19,7 +19,16 @@ spec:
spec: spec:
containers: containers:
- name: infra-map - name: infra-map
- env: image: ${IMAGE}
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 300m
memory: 828Mi
requests:
cpu: 250m
memory: 64Mi
env:
- name: ORIGIN - name: ORIGIN
value: http://infra-map.infra-map.svc.cluster.local:3000 value: http://infra-map.infra-map.svc.cluster.local:3000
- name: PROTOCOL_HEADER - name: PROTOCOL_HEADER
@@ -33,17 +42,5 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: secret-env-values name: secret-env-values
image: ${IMAGE}
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 300m
memory: 828Mi
requests:
cpu: 250m
memory: 64Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullSecrets: imagePullSecrets:
- name: ghcr-login-secret - name: ghcr-login-secret
dnsPolicy: ClusterFirst

View File

@@ -9,7 +9,7 @@ metadata:
spec: spec:
ports: ports:
- port: 80 - port: 80
name: http name: http-varnish
protocol: TCP protocol: TCP
targetPort: 6081 targetPort: 6081
selector: selector:
@@ -28,7 +28,7 @@ metadata:
spec: spec:
ports: ports:
- port: 80 - port: 80
name: http name: http-app
protocol: TCP protocol: TCP
targetPort: 3000 targetPort: 3000
selector: selector: