zkt24/kubernetes/stockmanager-service.yaml

44 lines
735 B
YAML
Raw Normal View History

2022-06-14 16:23:05 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: stockmanager
labels:
app: stockmanager
spec:
type: NodePort
selector:
app: stockmanager
ports:
- protocol: TCP
port: 8030
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stockmanager
spec:
spec:
selector:
matchLabels:
app: stockmanager
replicas: 1
template:
metadata:
labels:
app: stockmanager
spec:
containers:
- name: stockmanager
image: danielbryantuk/djstockmanager:latest
ports:
- containerPort: 8030
livenessProbe:
httpGet:
path: /health
port: 8030
initialDelaySeconds: 30
timeoutSeconds: 1