Skip to content

Commit

Permalink
Set deployment replicas=2, and clean up resource labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Feb 6, 2024
1 parent 762274c commit 081c757
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: mapproxy-deployment
spec:
replicas: 1
replicas: 2
strategy:
type: RollingUpdate
template:
Expand Down
6 changes: 3 additions & 3 deletions kustomize/overlays/prod/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: Deployment
metadata:
name: mapproxy-deployment
labels:
app: mapproxy-prod
app: mapproxy-deployment
spec:
selector:
matchLabels:
app: mapproxy-prod
app: mapproxy-deployment
template:
metadata:
labels:
app: mapproxy-prod
app: mapproxy-deployment
spec:
initContainers:
- name: chown-pvc
Expand Down
2 changes: 1 addition & 1 deletion kustomize/overlays/prod/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ spec:
minAvailable: 1
selector:
matchLabels:
app: mapproxy-prod
app: mapproxy-deployment
variant: prod
2 changes: 1 addition & 1 deletion kustomize/overlays/prod/service_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
spec:
type: ClusterIP
selector:
app: mapproxy-prod
app: mapproxy-deployment
variant: prod
6 changes: 3 additions & 3 deletions kustomize/overlays/uat/deployment_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: Deployment
metadata:
name: mapproxy-deployment
labels:
app: mapproxy-uat
app: mapproxy-deployment
spec:
selector:
matchLabels:
app: mapproxy-uat
app: mapproxy-deployment
template:
metadata:
labels:
app: mapproxy-uat
app: mapproxy-deployment
spec:
initContainers:
- name: chown-pvc
Expand Down
2 changes: 1 addition & 1 deletion kustomize/overlays/uat/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ spec:
minAvailable: 1
selector:
matchLabels:
app: mapproxy-uat
app: mapproxy-deployment
variant: uat
2 changes: 1 addition & 1 deletion kustomize/overlays/uat/service_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
spec:
type: ClusterIP
selector:
app: mapproxy-uat
app: mapproxy-deployment
variant: uat

0 comments on commit 081c757

Please sign in to comment.