38 lines
622 B
YAML
38 lines
622 B
YAML
|
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:
|
||
|
- image: redis:6.2.6-alpine
|
||
|
name: redis
|
||
|
resources: {}
|
||
|
ports:
|
||
|
- containerPort: 6379
|
||
|
restartPolicy: Always
|
||
|
status: {}
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: redis
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 6379
|
||
|
protocol: TCP
|
||
|
selector:
|
||
|
io.kompose.service: redis
|
||
|
---
|