2021-12-19 09:07:12 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
io.kompose.service: redis
|
|
|
|
name: redis
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: redis
|
|
|
|
strategy: {}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
io.kompose.service: redis
|
|
|
|
spec:
|
|
|
|
containers:
|
2021-12-19 09:34:51 +00:00
|
|
|
- image: redis:6.2.6-alpine
|
2021-12-19 09:07:12 +00:00
|
|
|
name: redis
|
|
|
|
resources: {}
|
2021-12-19 09:34:51 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 6379
|
2021-12-19 09:07:12 +00:00
|
|
|
restartPolicy: Always
|
|
|
|
status: {}
|
2021-12-19 09:34:51 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: redis
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 6379
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
io.kompose.service: redis
|
|
|
|
---
|