mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
34 lines
557 B
YAML
34 lines
557 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis
|
|
namespace: crawlab
|
|
spec:
|
|
ports:
|
|
- port: 6379
|
|
selector:
|
|
app: redis
|
|
clusterIP: None
|
|
---
|
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
|
kind: Deployment
|
|
metadata:
|
|
name: redis
|
|
namespace: crawlab
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: redis
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
containers:
|
|
- image: redis
|
|
name: redis
|
|
ports:
|
|
- containerPort: 6379
|
|
name: redis |