zkt24-sk1/kubernetes/stockmanager-service.yaml
2024-04-16 17:33:02 +02:00

43 lines
722 B
YAML

---
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:
selector:
matchLabels:
app: stockmanager
replicas: 1
template:
metadata:
labels:
app: stockmanager
spec:
containers:
- name: stockmanager
image: thetips4you/stockmanager:latest
ports:
- containerPort: 8030
livenessProbe:
httpGet:
path: /health
port: 8030
initialDelaySeconds: 30
timeoutSeconds: 1