bullish/k8s/app/redis.yaml
Ameya Shenoy b2f76391db
feat: working prod deploy with duplicate code
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2021-02-12 03:26:27 +05:30

43 lines
630 B
YAML

---
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
...