70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/instance: authelia
|
|
app.kubernetes.io/part-of: authelia
|
|
name: redis
|
|
namespace: authelia
|
|
spec:
|
|
ports:
|
|
- name: redis
|
|
port: 6379
|
|
selector:
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/instance: authelia
|
|
type: ClusterIP
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: redis
|
|
namespace: authelia
|
|
labels:
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/instance: authelia
|
|
app.kubernetes.io/part-of: authelia
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/instance: authelia
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: redis
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/instance: authelia
|
|
spec:
|
|
containers:
|
|
- name: redis
|
|
image: docker.io/library/redis:7
|
|
args:
|
|
- --save
|
|
- ''
|
|
- --appendonly
|
|
- 'no'
|
|
ports:
|
|
- name: redis
|
|
containerPort: 6379
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
runAsUser: 999
|
|
runAsGroup: 999
|
|
volumeMounts:
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
securityContext:
|
|
fsGroup: 999
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir:
|