Skip to content

Commit

Permalink
require replicas start on different nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ypapax committed Apr 18, 2018
1 parent 493fb5a commit d035e9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/kubernetes_external_ip.yaml
Expand Up @@ -14,6 +14,16 @@ spec:
image: gcr.io/hazel-champion-200108/say
ports:
- containerPort: 8080
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- say
topologyKey: "kubernetes.io/hostname"
---
kind: Service
apiVersion: v1
Expand Down

0 comments on commit d035e9c

Please sign in to comment.