mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-12-08 04:09:07 +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:
40
.kubernetes/deployment-varnish.yml
Normal file
40
.kubernetes/deployment-varnish.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
labels:
|
||||
app: varnish
|
||||
name: varnish
|
||||
namespace: ${NAMESPACE}
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: varnish
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: varnish
|
||||
spec:
|
||||
containers:
|
||||
- command:
|
||||
- /usr/local/bin/docker-entrypoint.sh
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: varnish-config
|
||||
image: ghcr.io/kevinmidboe/varnish-infra-map:latest
|
||||
imagePullPolicy: Always
|
||||
name: varnish
|
||||
resources:
|
||||
limits:
|
||||
cpu: 900m
|
||||
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