mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-10-29 17:40:28 +00:00
kubernetes deployments for varnish & app
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user