bullish/k8s/app/redis.yaml

44 lines
630 B
YAML
Raw Normal View History

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bullish-redis
spec:
selector:
matchLabels:
app: bullish-redis
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: bullish-redis
spec:
containers:
- name: redis
image: redis:6.0.10-alpine3.13
---
apiVersion: v1
kind: Service
metadata:
name: bullish-redis
labels:
app: bullish-redis
spec:
type: ClusterIP
selector:
app: bullish-redis
ports:
- port: 6379
targetPort: 6379
protocol: TCP
...