mirror of https://github.com/abpframework/eventhub
30 changed files with 165 additions and 76 deletions
@ -1,23 +1,23 @@ |
|||
apiVersion: networking.k8s.io/v1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: account-ingress |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-ingress |
|||
annotations: |
|||
nginx.ingress.kubernetes.io/rewrite-target: / |
|||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" |
|||
spec: |
|||
tls: |
|||
- hosts: |
|||
- account.openeventhub.com |
|||
secretName: account-tls |
|||
- {{ .Values.accountUrl }} |
|||
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls |
|||
rules: |
|||
- host: "account.openeventhub.com" |
|||
- host: "{{ .Values.accountUrl }}" |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: account |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -1,22 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: account |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: account |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: account |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: eventhub.account |
|||
imagePullPolicy: Never |
|||
name: account |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: accounthttp |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: accounthttps |
|||
- name: https |
|||
containerPort: 443 |
|||
@ -0,0 +1,3 @@ |
|||
accountUrl: eh-st-account |
|||
apiUrl: eh-st-api |
|||
wwwUrl: eh-st-www |
|||
@ -1,18 +1,18 @@ |
|||
apiVersion: networking.k8s.io/v1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: api-ingress |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-ingress |
|||
annotations: |
|||
nginx.ingress.kubernetes.io/rewrite-target: / |
|||
spec: |
|||
rules: |
|||
- host: "api.openeventhub.com" |
|||
- host: "{{ .Values.apiUrl }}" |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: api |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -1,28 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: api |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: api |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: api |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: eventhub.api |
|||
imagePullPolicy: Never |
|||
name: api |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: apihttp |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: apihttps |
|||
containerPort: 443 |
|||
hostAliases: |
|||
- ip: 10.105.172.183 |
|||
hostnames: |
|||
- "account.openeventhub.com" |
|||
- "openeventhub.com" |
|||
- "api.openeventhub.com" |
|||
- name: https |
|||
containerPort: 443 |
|||
@ -0,0 +1,3 @@ |
|||
accountUrl: eh-st-account |
|||
apiUrl: eh-st-api |
|||
wwwUrl: eh-st-www |
|||
@ -1,13 +1,13 @@ |
|||
apiVersion: batch/v1 |
|||
kind: Job |
|||
metadata: |
|||
name: migrator |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
activeDeadlineSeconds: 100 |
|||
template: |
|||
spec: |
|||
containers: |
|||
- name: migrator |
|||
- name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
image: eventhubmigrator |
|||
imagePullPolicy: Never |
|||
restartPolicy: Never |
|||
|
|||
@ -0,0 +1,3 @@ |
|||
accountUrl: eh-st-account |
|||
apiUrl: eh-st-api |
|||
wwwUrl: eh-st-www |
|||
@ -1,25 +1,20 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: redis |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
app: redis |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: redis |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: redis:6.0.10-alpine |
|||
name: redis |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: redis |
|||
containerPort: 6379 |
|||
env: |
|||
- name: POSTGRES_USER |
|||
value: "root" |
|||
- name: POSTGRES_PASSWORD |
|||
value: "root" |
|||
containerPort: 6379 |
|||
@ -0,0 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: www |
|||
appVersion: "1.0" |
|||
description: EventHub WWW Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -0,0 +1,23 @@ |
|||
apiVersion: networking.k8s.io/v1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-ingress |
|||
annotations: |
|||
nginx.ingress.kubernetes.io/rewrite-target: / |
|||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" |
|||
spec: |
|||
tls: |
|||
- hosts: |
|||
- {{ .Values.wwwUrl }} |
|||
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls |
|||
rules: |
|||
- host: "{{ .Values.wwwUrl }}" |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -0,0 +1,14 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
labels: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
ports: |
|||
- name: "80" |
|||
port: 80 |
|||
- name: "443" |
|||
port: 443 |
|||
selector: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
@ -0,0 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: eventhub.www |
|||
imagePullPolicy: Never |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
@ -0,0 +1,3 @@ |
|||
accountUrl: eh-st-account |
|||
apiUrl: eh-st-api |
|||
wwwUrl: eh-st-www |
|||
@ -0,0 +1,3 @@ |
|||
accountUrl: eh-st-account |
|||
apiUrl: eh-st-api |
|||
wwwUrl: eh-st-www |
|||
@ -0,0 +1,4 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|||
COPY bin/Release/net5.0/publish/ app/ |
|||
WORKDIR /app |
|||
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
|||
Loading…
Reference in new issue