zkt24-sk1/kubernetes/productcatalogue-service.yaml

43 lines
759 B
YAML
Raw Normal View History

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