You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
550 B

apiVersion: v1
kind: Service
metadata:
name: redis
spec:
ports:
- port: 6379
selector:
app: redis-dev
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: redis-dev
spec:
selector:
matchLabels:
app: redis-dev
strategy:
type: Recreate
template:
metadata:
labels:
app: redis-dev
spec:
containers:
- image: redis:6
name: redis
ports:
- containerPort: 6379
name: redis
command: ["redis-server"]