bullish/k8s/app/backend.yaml
Ameya Shenoy d1e5d96fcf
fix: move secrets to a k8s secret
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2021-02-13 09:37:06 +05:30

46 lines
738 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bullish-backend
spec:
selector:
matchLabels:
app: bullish-backend
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: bullish-backend
spec:
containers:
- name: bullish-backend
image: codingcoffee/bullish-backend
envFrom:
- secretRef:
name: bullish-secret
---
apiVersion: v1
kind: Service
metadata:
name: bullish-backend
labels:
app: bullish-backend
spec:
type: ClusterIP
selector:
app: bullish-backend
ports:
- port: 8000
targetPort: 8000
protocol: TCP
...