apiVersion: apps/v1
kind: Deployment
metadata:
name: part-inventory-service
spec:
replicas: 1
selector:
matchLabels:
app: part-inventory-service
template:
metadata:
labels:
app: part-inventory-service
spec:
# tolerations:
# - key: "env"
# operator: "Equal"
# value: "dev"
# effect: "NoSchedule"
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: env
# operator: In
# values:
# - "dev"
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 1
# preference:
# matchExpressions:
# - key: end
# operator: In
# values:
# - "prod"
containers:
- name: part-inventory-service
image: ram1uj/part-inventory-service
imagePullPolicy: IfNotPresent
env:
- name: SPRING_PROFILES_ACTIVE
value: "dev"
- name: MYSQL_HOST
value: "mysql.default.svc.cluster.local"
- name: MYSQL_PORT
value: "3306"
- name: MYSQL_DATABASE
value: "part_inventory_db"
- name: MYSQL_USER
value: "root"
- name: MYSQL_PASSWORD
value: "password"
ports:
- containerPort: 8080
Inventory Order App Yamls / tolerations:
TrackKubernetes Learning Journey
Current SectionDeployments
Progress56 of 271