You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
711 B
36 lines
711 B
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: session-db
|
|
labels:
|
|
name: session-db
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: session-db
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: session-db
|
|
annotations:
|
|
prometheus.io.scrape: "false"
|
|
spec:
|
|
containers:
|
|
- name: session-db
|
|
image: redis:alpine
|
|
ports:
|
|
- name: redis
|
|
containerPort: 6379
|
|
securityContext:
|
|
capabilities:
|
|
drop:
|
|
- all
|
|
add:
|
|
- CHOWN
|
|
- SETGID
|
|
- SETUID
|
|
readOnlyRootFilesystem: true
|
|
nodeSelector:
|
|
beta.kubernetes.io/os: linux
|
|
|