Files
kops-arm64/openshift/deploy/redis-deployment.yaml
2023-05-22 01:11:41 +02:00

49 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
application: kube-ops-view
component: redis
name: kube-ops-view-redis
spec:
replicas: 1
selector:
matchLabels:
application: kube-ops-view
component: redis
template:
metadata:
labels:
application: kube-ops-view
component: redis
spec:
containers:
- name: redis
image: redis:7-alpine
ports:
- containerPort: 6379
protocol: TCP
readinessProbe:
tcpSocket:
port: 6379
resources:
limits:
cpu: 200m
memory: 300Mi
requests:
cpu: 100m
memory: 300Mi
securityContext:
readOnlyRootFilesystem: true
# runAsNonRoot: true
# we need to use the "redis" uid
# runAsUser: 999
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
emptyDir: {}
# defaultMode: 0775