Skip to content

Commit 1237364

Browse files
authored
Intermittent NATS issue fix (#889)
* NATS issue fix * Nats streaming issue fix * nats issue fix
1 parent 4d44145 commit 1237364

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

manifests/yamls/nats-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ spec:
113113

114114
app.kubernetes.io/name: nats
115115
app.kubernetes.io/instance: devtron-nats
116-
replicas: 3
116+
replicas: 1
117117
serviceName: devtron-nats
118118
template:
119119
metadata:

manifests/yamls/nats-streaming.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,24 @@ spec:
102102

103103
affinity:
104104
podAntiAffinity:
105-
requiredDuringSchedulingIgnoredDuringExecution:
106-
- labelSelector:
107-
matchExpressions:
108-
- key: app
109-
operator: In
110-
values:
111-
- devtron-stan
112-
topologyKey: kubernetes.io/hostname
105+
# requiredDuringSchedulingIgnoredDuringExecution:
106+
# - labelSelector:
107+
# matchExpressions:
108+
# - key: app
109+
# operator: In
110+
# values:
111+
# - devtron-stan
112+
# topologyKey: kubernetes.io/hostname
113+
preferredDuringSchedulingIgnoredDuringExecution:
114+
- weight: 100
115+
podAffinityTerm:
116+
labelSelector:
117+
matchExpressions:
118+
- key: app
119+
operator: In
120+
values:
121+
- devtron-stan
122+
topologyKey: kubernetes.io/hostname
113123
containers:
114124
####################
115125
# NATS Streaming #

0 commit comments

Comments
 (0)