ungleich-k8s/apps/workadventure/v3/templates/redis-deployment.yaml

37 lines
783 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-redis
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: redis
strategy: {}
template:
metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: redis
spec:
containers:
- image: redis:6.2.6-alpine
name: redis
ports:
- containerPort: 6379
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-redis
spec:
ports:
- port: 6379
protocol: TCP
selector:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: redis