39 lines
595 B
YAML
39 lines
595 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: input-redis
|
|
namespace: birbnetes
|
|
labels:
|
|
app: input-redis
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: input-redis
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: input-redis
|
|
spec:
|
|
containers:
|
|
- name: input-redis
|
|
image: redis
|
|
ports:
|
|
- containerPort: 6379
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: input-redis
|
|
spec:
|
|
selector:
|
|
app: input-redis
|
|
ports:
|
|
- name: input-redis
|
|
protocol: TCP
|
|
port: 6379
|
|
targetPort: 6379
|
|
|