forked from tsai/eShopOnAbp
Compare commits
2 Commits
main
...
gterdem/de
| Author | SHA1 | Date |
|---|---|---|
|
|
79820c223a | 5 years ago |
|
|
7696e27ffe | 5 years ago |
10 changed files with 342 additions and 0 deletions
@ -0,0 +1,75 @@ |
|||
kind: ConfigMap |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: authserver-cm |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: authserver |
|||
data: |
|||
ASPNETCORE_ENVIRONMENT: Development |
|||
ASPNETCORE_URLS: http://0.0.0.0:80 |
|||
ConnectionStrings__IdentityService: Server=localhost,1434;Database=EShopOnAbp_Identity;User Id=sa;password=myPassw0rd;MultipleActiveResultSets=true |
|||
DPConnectionString: basketdata |
|||
OrchestratorType: K8S |
|||
SpaClient: http://localhost:30000 |
|||
BasketApiClient: http://basket-api |
|||
OrderingApiClient: http://ordering-api |
|||
CouponApiClient: http://coupon-api |
|||
WebShoppingAggClient: http://webshoppingagg |
|||
PATH_BASE: /authserver |
|||
UseCustomizationData: "True" |
|||
|
|||
--- |
|||
|
|||
kind: Deployment |
|||
apiVersion: apps/v1 |
|||
metadata: |
|||
name: authserver |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: authserver |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
service: authserver |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eshop |
|||
service: authserver |
|||
spec: |
|||
containers: |
|||
- name: authserver |
|||
image: eshoponabp/authserver:latest |
|||
imagePullPolicy: IfNotPresent |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
protocol: TCP |
|||
envFrom: |
|||
- configMapRef: |
|||
name: authserver-cm |
|||
|
|||
--- |
|||
|
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: authserver |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: authserver |
|||
spec: |
|||
type: NodePort |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
nodePort: 30008 |
|||
protocol: TCP |
|||
name: http |
|||
selector: |
|||
service: authserver |
|||
@ -0,0 +1,71 @@ |
|||
kind: ConfigMap |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: identity-cm |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: identity |
|||
data: |
|||
ASPNETCORE_ENVIRONMENT: Development |
|||
ASPNETCORE_URLS: http://0.0.0.0:80 |
|||
App__SelfUrl: https://localhost:44351 |
|||
ConnectionStrings__IdentityService: Server=localhost,1434;Database=EShopOnAbp_Identity;User Id=sa;password=myPassw0rd |
|||
ConnectionStrings__AdministrationService: Server=localhost,1434;Database=EShopOnAbp_Administration;User Id=sa;password=myPassw0rd |
|||
ConnectionStrings__SaasService: Server=localhost,1434;Database=EShopOnAbp_Saas;User Id=sa;password=myPassw0rd |
|||
Redis__Configuration: localhost:6379 |
|||
RabbitMQ__Connections__Default__HostName: localhost |
|||
|
|||
--- |
|||
|
|||
kind: Deployment |
|||
apiVersion: apps/v1 |
|||
metadata: |
|||
name: identity |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: identity |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
service: identity |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eshop |
|||
service: identity |
|||
spec: |
|||
containers: |
|||
- name: identity-api |
|||
image: eshoponabp/service-identity:latest |
|||
imagePullPolicy: IfNotPresent |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
protocol: TCP |
|||
envFrom: |
|||
- configMapRef: |
|||
name: identity-cm |
|||
|
|||
--- |
|||
|
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: identity-api |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: identity |
|||
spec: |
|||
type: NodePort |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
nodePort: 30008 |
|||
protocol: TCP |
|||
name: http |
|||
selector: |
|||
service: identity |
|||
@ -0,0 +1,4 @@ |
|||
apiVersion: v1 |
|||
kind: Namespace |
|||
metadata: |
|||
name: eshop |
|||
@ -0,0 +1,16 @@ |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: rabbitmq-admin |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: rabbitmq-admin |
|||
spec: |
|||
type: NodePort |
|||
selector: |
|||
service: rabbitmq |
|||
ports: |
|||
- port: 15672 |
|||
nodePort: 31672 |
|||
name: rabbitmq-port |
|||
@ -0,0 +1,46 @@ |
|||
kind: Deployment |
|||
apiVersion: apps/v1 |
|||
metadata: |
|||
name: rabbitmq |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: rabbitmq |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
service: rabbitmq |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eshop |
|||
service: rabbitmq |
|||
spec: |
|||
containers: |
|||
- name: rabbitmq |
|||
image: rabbitmq:3-management-alpine |
|||
imagePullPolicy: IfNotPresent |
|||
ports: |
|||
- name: amqp |
|||
containerPort: 5672 |
|||
protocol: TCP |
|||
--- |
|||
|
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: rabbitmq |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: rabbitmq |
|||
spec: |
|||
type: ClusterIP |
|||
ports: |
|||
- port: 5672 |
|||
targetPort: 5672 |
|||
protocol: TCP |
|||
name: amqp |
|||
selector: |
|||
service: rabbitmq |
|||
@ -0,0 +1,48 @@ |
|||
kind: Deployment |
|||
apiVersion: apps/v1 |
|||
metadata: |
|||
name: redis |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: redis |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
service: redis |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eshop |
|||
service: redis |
|||
spec: |
|||
containers: |
|||
- name: redis |
|||
image: redis:alpine |
|||
imagePullPolicy: IfNotPresent |
|||
ports: |
|||
- name: http |
|||
containerPort: 6379 |
|||
protocol: TCP |
|||
|
|||
--- |
|||
|
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: redis |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: redis |
|||
spec: |
|||
type: NodePort |
|||
ports: |
|||
- port: 6379 |
|||
targetPort: 6379 |
|||
nodePort: 30379 |
|||
protocol: TCP |
|||
name: redis |
|||
selector: |
|||
service: redis |
|||
@ -0,0 +1,16 @@ |
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: sql-service |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: sql-service |
|||
spec: |
|||
type: NodePort |
|||
selector: |
|||
service: sqldb |
|||
ports: |
|||
- port: 1433 |
|||
nodePort: 31433 |
|||
name: sql-port |
|||
@ -0,0 +1,52 @@ |
|||
kind: Deployment |
|||
apiVersion: apps/v1 |
|||
metadata: |
|||
name: sqldb |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: sqldb |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
service: sqldb |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eshop |
|||
service: sqldb |
|||
spec: |
|||
containers: |
|||
- name: sqldb |
|||
image: mcr.microsoft.com/mssql/server |
|||
imagePullPolicy: IfNotPresent |
|||
ports: |
|||
- name: sqlserver |
|||
containerPort: 1433 |
|||
protocol: TCP |
|||
env: |
|||
- name: SA_PASSWORD |
|||
value: Pass@word |
|||
- name: ACCEPT_EULA |
|||
value: "Y" |
|||
|
|||
--- |
|||
|
|||
kind: Service |
|||
apiVersion: v1 |
|||
metadata: |
|||
name: sqldb |
|||
namespace: eshop |
|||
labels: |
|||
app: eshop |
|||
service: sqldb |
|||
spec: |
|||
type: ClusterIP |
|||
ports: |
|||
- port: 1433 |
|||
targetPort: 1434 |
|||
protocol: TCP |
|||
name: tds |
|||
selector: |
|||
service: sqldb |
|||
@ -0,0 +1,7 @@ |
|||
kubectl apply ` |
|||
-f ./namespace.yaml ` |
|||
-f ./rabbitmq.yaml ` |
|||
-f ./rabbitmq-admin.yaml ` |
|||
-f ./redis.yaml ` |
|||
-f ./sqlserver.yaml ` |
|||
-f ./sql-service.yaml |
|||
@ -0,0 +1,7 @@ |
|||
kubectl delete ` |
|||
-f ./namespace.yaml ` |
|||
-f ./rabbitmq.yaml ` |
|||
-f ./rabbitmq-admin.yaml ` |
|||
-f ./redis.yaml ` |
|||
-f ./sqlserver.yaml ` |
|||
-f ./sql-service.yaml |
|||
Loading…
Reference in new issue