Skip to content

Commit d943b2e

Browse files
author
Brad Barnes
committed
Fix for # replicas and stage resources
1 parent 22ae609 commit d943b2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

connectors/postgres/k8s-docs/redis-connect-postgres-stage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ spec:
2323
imagePullPolicy: Always # IfNotPresent # Always pull image
2424
resources:
2525
limits:
26-
cpu: "1000m"
27-
memory: "1024Mi"
28-
requests:
2926
cpu: "500m"
3027
memory: "256Mi"
28+
requests:
29+
cpu: "250m"
30+
memory: "256Mi"
3131
ports:
3232
- containerPort: 8282 # exposed container port to the REST API
3333
protocol: TCP

connectors/postgres/k8s-docs/redis-connect-postgres-start.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app: redis-connect-postgres # deployment label
77
spec:
8-
replicas: 1 # a single replica pod
8+
replicas: 2 # replicas for HA
99
selector:
1010
matchLabels:
1111
app: redis-connect-postgres # which pods is the deployment managing, as defined by the pod template
@@ -14,7 +14,7 @@ spec:
1414
labels:
1515
app: redis-connect-postgres
1616
spec:
17-
affinity: ### the following
17+
affinity:
1818
podAntiAffinity:
1919
requiredDuringSchedulingIgnoredDuringExecution:
2020
- labelSelector:

0 commit comments

Comments
 (0)