mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2026-02-15 12:49:20 +00:00
compile varnish tmpl from docker-entrypoint script
also updates kubernetes resources to separate app & varnish into two different deployments
This commit is contained in:
49
.kubernetes/deployment-app.yml
Normal file
49
.kubernetes/deployment-app.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
labels:
|
||||
app: infra-map
|
||||
name: infra-map
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: infra-map
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: infra-map
|
||||
spec:
|
||||
containers:
|
||||
- name: infra-map
|
||||
- env:
|
||||
- name: ORIGIN
|
||||
value: http://infra-map.infra-map.svc.cluster.local:3000
|
||||
- name: PROTOCOL_HEADER
|
||||
value: x-forwarded-proto
|
||||
- name: HOST_HEADER
|
||||
value: x-forwarded-host
|
||||
- name: PORT_HEADER
|
||||
value: x-forwarded-port
|
||||
- name: ENV
|
||||
value: production
|
||||
envFrom:
|
||||
- secretRef:
|
||||
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:
|
||||
- name: ghcr-login-secret
|
||||
dnsPolicy: ClusterFirst
|
||||
Reference in New Issue
Block a user