Skip to content

Commit

Permalink
Make varnish a deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Oct 24, 2024
1 parent a409224 commit 73bbe59
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 34 deletions.
45 changes: 45 additions & 0 deletions apps/website/varnish/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: varnish-proxy
namespace: default
labels:
app: varnish-proxy
spec:
replicas: 1
revisionHistoryLimit: 5
selector:
matchLabels:
app: varnish-proxy
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
name: varnish-proxy
labels:
app: varnish-proxy
spec:
containers:
- name: varnish
image: million12/varnish
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
env:
- name: VCL_CONFIG
value: /etc/varnish/default.vcl
volumeMounts:
- name: varnish-config
mountPath: /etc/varnish/
volumes:
- name: varnish-config
configMap:
name: varnish-vcl
items:
- key: default.vcl
path: default.vcl
2 changes: 1 addition & 1 deletion apps/website/varnish/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- rc.yaml
- deploy.yaml
- service.yaml
33 changes: 0 additions & 33 deletions apps/website/varnish/rc.yaml

This file was deleted.

0 comments on commit 73bbe59

Please sign in to comment.