Skip to content

Commit

Permalink
deployment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitGujar committed Oct 25, 2023
1 parent 531fbaa commit e6f4d63
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion manifests/rollingdeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: freefacts-deployment
namespace: default
spec:
replicas: 3
strategy:
Expand All @@ -17,6 +18,18 @@ spec:
labels:
app: freefacts-deployment
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- freefacts-deployment
topologyKey: kubernetes.io/hostname
containers:
- name: freefacts-deployment
image: amitgujar/freefacts:_latest_
Expand Down Expand Up @@ -52,4 +65,4 @@ spec:
valueFrom:
secretKeyRef:
name: freefacts-secrets
key: password
key: password

0 comments on commit e6f4d63

Please sign in to comment.