Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
naman-msft committed Jan 29, 2025
1 parent a91b7f3 commit 4532f50
Showing 1 changed file with 59 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,74 @@ metadata:
name: rabbitmq
spec:
serviceName: rabbitmq
---
apiVersion: v1
data:
rabbitmq_enabled_plugins: |
kind: ConfigMap
metadata:
name: rabbitmq-enabled-plugins
---
apiVersion: v1
kind: Service
metadata:
name: rabbitmq
spec:
selector:
app: rabbitmq
ports:
- protocol: TCP
port: 5672
targetPort: 5672
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: store-front
spec:
replicas: 1
selector:
matchLabels:
app: rabbitmq
app: store-front
template:
metadata:
labels:
app: rabbitmq
app: store-front
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: rabbitmq
image: mcr.microsoft.com/mirror/docker/library/rabbitmq:3.10-management-alpine
- name: store-front
image: mcr.microsoft.com/azuredocs/aks-store-demo:latest
ports:
- containerPort: 5672
name: rabbitmq-amqp
- containerPort: 15672
name: rabbitmq-http
- containerPort: 80
env:
- name: RABBITMQ_DEFAULT_USER
- name: ORDER_QUEUE_HOSTNAME
value: "rabbitmq"
- name: ORDER_QUEUE_PORT
value: "5672"
- name: ORDER_QUEUE_USERNAME
value: "username"
- name: RABBITMQ_DEFAULT_PASS
- name: ORDER_QUEUE_PASSWORD
value: "password"
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: rabbitmq-enabled-plugins
mountPath: /etc/rabbitmq/enabled_plugins
subPath: enabled_plugins
volumes:
- name: rabbitmq-enabled-plugins
configMap:
name: rabbitmq-enabled-plugins
items:
- key: rabbitmq_enabled_plugins
path: enabled_plugins
- name: ORDER_QUEUE_NAME
value: "orders"
- name: FASTIFY_ADDRESS
value: "0.0.0.0"
- name: AI_SERVICE_URL
value: "http://ai-service:5001/"
- name: VUE_APP_ORDER_SERVICE_URL
value: "http://order-service:3000/"
- name: VUE_APP_PRODUCT_SERVICE_URL
value: "http://product-service:3002/"
---
apiVersion: v1
kind: Service
metadata:
name: store-front
spec:
type: LoadBalancer
selector:
app: store-front
ports:
- protocol: TCP
port: 80
targetPort: 80

0 comments on commit 4532f50

Please sign in to comment.