update k8s configuration
- add event bus - remove ASPNETCORE_ENVIRONMENT = Development (apps will default to Production)
This commit is contained in:
parent
25f23d2503
commit
1bbd152dc4
@ -15,12 +15,12 @@ spec:
|
|||||||
image: eshop/basket.api
|
image: eshop/basket.api
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80/basket-api
|
value: http://0.0.0.0:80/basket-api
|
||||||
- name: ConnectionString
|
- name: ConnectionString
|
||||||
value: 127.0.0.1
|
value: 127.0.0.1
|
||||||
|
- name: EventBusConnection
|
||||||
|
value: rabbitmq
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -52,12 +52,12 @@ spec:
|
|||||||
image: eshop/catalog.api
|
image: eshop/catalog.api
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80/catalog-api
|
value: http://0.0.0.0:80/catalog-api
|
||||||
- name: ConnectionString
|
- name: ConnectionString
|
||||||
value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"
|
value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"
|
||||||
|
- name: EventBusConnection
|
||||||
|
value: rabbitmq
|
||||||
- name: ExternalCatalogBaseUrl
|
- name: ExternalCatalogBaseUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -85,8 +85,6 @@ spec:
|
|||||||
image: eshop/identity.api
|
image: eshop/identity.api
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80/identity
|
value: http://0.0.0.0:80/identity
|
||||||
- name: ConnectionStrings__DefaultConnection
|
- name: ConnectionStrings__DefaultConnection
|
||||||
@ -123,12 +121,12 @@ spec:
|
|||||||
image: eshop/ordering.api
|
image: eshop/ordering.api
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80/ordering-api
|
value: http://0.0.0.0:80/ordering-api
|
||||||
- name: ConnectionString
|
- name: ConnectionString
|
||||||
value: "Server=sql-data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;"
|
value: "Server=sql-data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;"
|
||||||
|
- name: EventBusConnection
|
||||||
|
value: rabbitmq
|
||||||
- name: IdentityUrl
|
- name: IdentityUrl
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -156,8 +154,6 @@ spec:
|
|||||||
image: eshop/webmvc
|
image: eshop/webmvc
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80/webmvc
|
value: http://0.0.0.0:80/webmvc
|
||||||
- name: BasketUrl
|
- name: BasketUrl
|
||||||
@ -207,8 +203,6 @@ spec:
|
|||||||
image: eshop/webspa
|
image: eshop/webspa
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ASPNETCORE_ENVIRONMENT
|
|
||||||
value: Development
|
|
||||||
- name: ASPNETCORE_URLS
|
- name: ASPNETCORE_URLS
|
||||||
value: http://0.0.0.0:80
|
value: http://0.0.0.0:80
|
||||||
- name: BasketUrl
|
- name: BasketUrl
|
||||||
|
30
k8s/rabbitmq.yaml
Normal file
30
k8s/rabbitmq.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: rabbitmq
|
||||||
|
name: rabbitmq
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 5672
|
||||||
|
selector:
|
||||||
|
app: eshop
|
||||||
|
component: rabbitmq
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: rabbitmq
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: eshop
|
||||||
|
component: rabbitmq
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: rabbitmq
|
||||||
|
image: rabbitmq:3.6.9-alpine
|
||||||
|
ports:
|
||||||
|
- containerPort: 5672
|
Loading…
x
Reference in New Issue
Block a user