-
Notifications
You must be signed in to change notification settings - Fork 135
/
deployment.patch.yaml
35 lines (31 loc) · 1.06 KB
/
deployment.patch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# Author: Hari Sekhon
# Date: 2020-09-21 13:36:02 +0100 (Mon, 21 Sep 2020)
#
# vim:ts=2:sts=2:sw=2:et
# lint: k8s
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# D e p l o y m e n t P a t c h
# ============================================================================ #
# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
# patch any fields from the generic deployment
#
# eg. number of replicas - set different between prod / staging / dev (override by calling this from kustomization.yaml)
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: NAME
namespace: NAMESPACE
spec:
# maybe you just want to run 2 replica pods n dev / staging instead of many in production
replicas: 2