Created
May 6, 2020 05:30
-
-
Save tasdikrahman/b706b8e9c57d8b7ec3e311ab0dacb188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: redis-cache | |
spec: | |
selector: | |
matchLabels: | |
app: store | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: store | |
spec: | |
affinity: | |
podAntiAffinity: | |
preferredDuringSchedulingIgnoredDuringExecution: | |
- podAffinityTerm: | |
labelSelector: | |
matchExpressions: | |
- key: app | |
operator: In | |
values: | |
- store | |
namespaces: | |
- default | |
topologyKey: failure-domain.beta.kubernetes.io/zone | |
weight: 100 | |
containers: | |
- name: redis-server | |
image: redis:3.2-alpine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment