Skip to content

Commit

Permalink
Created Kustomize prod overlay definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Dec 7, 2023
1 parent 23a4694 commit 559ebe0
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
26 changes: 26 additions & 0 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mapproxy-deployment
labels:
app: mapproxy-prod
spec:
selector:
matchLabels:
app: mapproxy-prod
template:
metadata:
labels:
app: mapproxy-prod
spec:
containers:
- name: mapproxy
volumeMounts:
- mountPath: /app/config
name: mapproxy-configmap
volumes:
- configMap:
name: mapproxy-configmap-prod
defaultMode: 292
optional: false
name: mapproxy-configmap
17 changes: 17 additions & 0 deletions kustomize/overlays/prod/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mapproxy-ingress
spec:
ingressClassName: nginx
rules:
- host: mapproxy.dbca.wa.gov.au
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: mapproxy-clusterip-prod
port:
number: 8080
21 changes: 21 additions & 0 deletions kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
nameSuffix: -prod
resources:
- ../../base
- ingress.yaml
- pdb.yaml
labels:
- includeSelectors: true
pairs:
variant: prod
images:
- name: ghcr.io/dbca-wa/mapproxy
newTag: 1.16.0
patches:
- path: deployment_patch.yaml
- path: service_patch.yaml
configMapGenerator:
- name: mapproxy-configmap
files:
- mapproxy.yaml
10 changes: 10 additions & 0 deletions kustomize/overlays/prod/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: mapproxy-pdb
spec:
minAvailable: 1
selector:
matchLabels:
app: mapproxy-prod
variant: prod
9 changes: 9 additions & 0 deletions kustomize/overlays/prod/service_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: mapproxy-clusterip
spec:
type: ClusterIP
selector:
app: mapproxy-prod
variant: prod

0 comments on commit 559ebe0

Please sign in to comment.