apiVersion: v1
kind: Service
metadata:
name: order
namespace: snackbar
labels:
service: order
project: snackbar
spec:
type: LoadBalancer
selector:
service: order
project: snackbar
ports:
- port: 80
targetPort: 8080
나머지는 (12)와 동일
kubectl get svc -l project=snackbar -n snackbar -o wide
curl -X POST http://$ORDER/checkout --header 'Content-Type: application/json' -d '{
"Pizza": 1,
"Burger": 2,
"Coke": 0,
"Juice": 0
}'