2018-06-29 10:44:33 +02:00
|
|
|
---
|
2018-06-29 10:11:51 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2018-06-29 10:44:33 +02:00
|
|
|
name: session-db
|
2018-06-29 10:11:51 +02:00
|
|
|
labels:
|
2018-06-29 10:44:33 +02:00
|
|
|
name: session-db
|
2018-06-29 10:11:51 +02:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-06-29 10:44:33 +02:00
|
|
|
name: session-db
|
2018-06-29 10:11:51 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-06-29 10:44:33 +02:00
|
|
|
name: session-db
|
|
|
|
annotations:
|
|
|
|
prometheus.io.scrape: "false"
|
2018-06-29 10:11:51 +02:00
|
|
|
spec:
|
|
|
|
containers:
|
2018-06-29 10:44:33 +02:00
|
|
|
- name: session-db
|
|
|
|
image: redis:alpine
|
2018-06-29 10:11:51 +02:00
|
|
|
ports:
|
2018-06-29 10:44:33 +02:00
|
|
|
- name: redis
|
|
|
|
containerPort: 6379
|
2018-06-29 10:11:51 +02:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- all
|
|
|
|
add:
|
|
|
|
- CHOWN
|
|
|
|
- SETGID
|
|
|
|
- SETUID
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/os: linux
|