Skip to content

Commit

Permalink
chore: Update kustomize deployment manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed May 5, 2021
1 parent ba4d08b commit 078cfb4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 234 deletions.
5 changes: 3 additions & 2 deletions kustomize/base/deployments/calert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ spec:
ports:
- containerPort: 6000
volumeMounts:
- mountPath: /etc/calert/
- mountPath: /etc/calert/config.toml
name: config-dir
subPath: config.toml
volumes:
- name: config-dir
configMap:
name: app-config
name: app-config
19 changes: 0 additions & 19 deletions kustomize/base/deployments/redis.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
resources:
- deployments/calert.yaml
- deployments/redis.yaml
- services/calert.yaml
- services/redis.yaml
namePrefix: calert-
11 changes: 0 additions & 11 deletions kustomize/base/services/redis.yaml

This file was deleted.

159 changes: 0 additions & 159 deletions kustomize/build/deploy.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions kustomize/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,11 @@ resources:
- ../../base
patchesStrategicMerge:
- patches/resource-limits.yaml
# - patches/service-calert.yaml
- patches/add-labels.yaml

images:
- name: mrkaran/calert
newTag: 1.0.0-stable
# patchesJson6902:
# - target:
# group: apps
# version: v1
# kind: Deployment
# name: app
# path: patches/add-redis-labels.yaml
# - target:
# group: apps
# version: v1
# kind: Deployment
# name: app
# path: patches/add-labels.yaml
configMapGenerator:
- name: app-config
files:
Expand Down
10 changes: 0 additions & 10 deletions kustomize/overlays/prod/patches/add-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,3 @@ spec:
metadata:
labels:
tier: api
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
template:
metadata:
labels:
tier: cache
17 changes: 0 additions & 17 deletions kustomize/overlays/prod/patches/resource-limits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,3 @@ spec:
limits:
memory: "400Mi"
cpu: "500m"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
template:
spec:
containers:
- name: redis
resources:
requests:
memory: "100Mi"
cpu: "150m"
limits:
memory: "200Mi"
cpu: "300m"

0 comments on commit 078cfb4

Please sign in to comment.