Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s e.g.: Enable high availablility by NOT collocating pods on the same node #741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions examples/kubernetes/stolon-keeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ spec:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: component
operator: In
values:
- stolon-keeper
topologyKey: "kubernetes.io/hostname"
terminationGracePeriodSeconds: 10
containers:
- name: stolon-keeper
Expand Down
10 changes: 10 additions & 0 deletions examples/kubernetes/stolon-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ spec:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: component
operator: In
values:
- stolon-proxy
topologyKey: "kubernetes.io/hostname"
containers:
- name: stolon-proxy
image: sorintlab/stolon:master-pg10
Expand Down
10 changes: 10 additions & 0 deletions examples/kubernetes/stolon-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ spec:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: component
operator: In
values:
- stolon-sentinel
topologyKey: "kubernetes.io/hostname"
containers:
- name: stolon-sentinel
image: sorintlab/stolon:master-pg10
Expand Down