Advertisement
QualibreInfo

redis-master-deployment.yml

Jun 3rd, 2022
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.68 KB | None | 0 0
  1. apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
  2. kind: Deployment
  3. metadata:
  4.   name: redis-master
  5.   labels:
  6.     app: redis
  7. spec:
  8.   selector:
  9.     matchLabels:
  10.       app: redis
  11.       role: master
  12.       tier: backend
  13.   replicas: 1
  14.   template:
  15.     metadata:
  16.       labels:
  17.         app: redis
  18.         role: master
  19.         tier: backend
  20.     spec:
  21.       containers:
  22.       - name: master
  23.         image: docker-all.devops.etat-ge.ch/redis:e2e  # or just image: redis
  24.         resources:
  25.           requests:
  26.             cpu: 100m
  27.             memory: 100Mi
  28.           limit:
  29.             cpu: 500m
  30.             memory: 256Mi
  31.         ports:
  32.         - containerPort: 6379
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement