apiVersion: apps/v1
kind: Deployment
metadata:
name: part-gateway
labels:
app: part-gateway
spec:
replicas: 1
selector:
matchLabels:
app: part-gateway
template:
metadata:
labels:
app: part-gateway
spec:
containers:
- name: part-gateway
image: ram1uj/part-gateway-service:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: http
env:
- name: SPRING_PROFILES_ACTIVE
value: prod
- name: PORT
value: "8080"
- name: PART_INVENTORY_SERVICE_URL
value: http://part-inventory-service
- name: PART_ORDER_SERVICE_URL
value: http://part-order-service
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
# readinessProbe:
# tcpSocket:
# port: 8080
# initialDelaySeconds: 10
# periodSeconds: 10
# livenessProbe:
# tcpSocket:
# port: 8080
# initialDelaySeconds: 30
# periodSeconds: 20
Apps / readinessProbe:
TrackKubernetes Learning Journey
Current SectionIngress
Progress212 of 271