-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Kubernetes resources and update configuration files
This commit includes the addition of new Kubernetes resources such as Deployments, Services, and StatefulSets for various applications and databases. Configuration files like `aspirate-state.json`, `aspirate.json`, and `aspire-manifest.json` have been updated with new JSON objects containing project configurations, container settings, and resource details. The `kustomization.yaml` files have been updated to include these new resources and generators for ConfigMaps and Secrets. This is part of a larger effort to configure and deploy a set of interconnected services for a complex application.
- Loading branch information
Showing
36 changed files
with
1,528 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: aspire-dashboard | ||
labels: | ||
app: aspire-dashboard | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: aspire-dashboard | ||
template: | ||
metadata: | ||
labels: | ||
app: aspire-dashboard | ||
spec: | ||
terminationGracePeriodSeconds: 30 | ||
containers: | ||
- name: aspire-dashboard | ||
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0 | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "512Mi" | ||
limits: | ||
memory: "512Mi" | ||
ports: | ||
- name: dashboard-ui | ||
containerPort: 18888 | ||
- name: otlp | ||
containerPort: 18889 | ||
env: | ||
- name: DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS | ||
value: "true" | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: aspire-dashboard | ||
spec: | ||
selector: | ||
app: aspire-dashboard | ||
ports: | ||
- name: dashboard-ui | ||
protocol: TCP | ||
port: 18888 | ||
targetPort: 18888 | ||
- name: otlp | ||
protocol: TCP | ||
port: 18889 | ||
targetPort: 18889 | ||
type: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
resources: | ||
- tracelenspgsql | ||
- plantuml | ||
- tracelens | ||
- mathz-messagebus-rabbitmq | ||
- mathz-databases-identitypostgres | ||
- mathz-services-identityapi | ||
- mathz-databases-emailpostgres | ||
- mathz-services-emailapi | ||
- mathz-databases-forumpostgres | ||
- mathz-services-forumapi | ||
- dashboard.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
src/MathZ.AppHost/aspirate-output/mathz-databases-emailpostgres/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
resources: | ||
- statefulset.yaml | ||
- service.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
configMapGenerator: | ||
- name: mathz-databases-emailpostgres-env | ||
literals: | ||
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256 | ||
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 --auth-local=scram-sha-256 | ||
- POSTGRES_USER=postgres | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889 | ||
- OTEL_SERVICE_NAME=mathz-databases-emailpostgres | ||
|
||
secretGenerator: | ||
- name: mathz-databases-emailpostgres-secrets | ||
envs: | ||
- .mathz-databases-emailpostgres.secrets |
13 changes: 13 additions & 0 deletions
13
src/MathZ.AppHost/aspirate-output/mathz-databases-emailpostgres/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mathz-databases-emailpostgres | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: mathz-databases-emailpostgres | ||
ports: | ||
- name: tcp | ||
port: 5432 | ||
targetPort: 5432 |
40 changes: 40 additions & 0 deletions
40
src/MathZ.AppHost/aspirate-output/mathz-databases-emailpostgres/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: mathz-databases-emailpostgres | ||
labels: | ||
app: mathz-databases-emailpostgres | ||
spec: | ||
serviceName: "mathz-databases-emailpostgres" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mathz-databases-emailpostgres | ||
template: | ||
metadata: | ||
labels: | ||
app: mathz-databases-emailpostgres | ||
spec: | ||
containers: | ||
- name: mathz-databases-emailpostgres | ||
image: docker.io/library/postgres:16.2 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 5432 | ||
envFrom: | ||
- configMapRef: | ||
name: mathz-databases-emailpostgres-env | ||
- secretRef: | ||
name: mathz-databases-emailpostgres-secrets | ||
volumeMounts: | ||
- name: mathz-databases-emaildatabase | ||
mountPath: /var/lib/postgresql/data | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: mathz-databases-emaildatabase | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi |
20 changes: 20 additions & 0 deletions
20
src/MathZ.AppHost/aspirate-output/mathz-databases-forumpostgres/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
resources: | ||
- statefulset.yaml | ||
- service.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
configMapGenerator: | ||
- name: mathz-databases-forumpostgres-env | ||
literals: | ||
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256 | ||
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 --auth-local=scram-sha-256 | ||
- POSTGRES_USER=postgres | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889 | ||
- OTEL_SERVICE_NAME=mathz-databases-forumpostgres | ||
|
||
secretGenerator: | ||
- name: mathz-databases-forumpostgres-secrets | ||
envs: | ||
- .mathz-databases-forumpostgres.secrets |
13 changes: 13 additions & 0 deletions
13
src/MathZ.AppHost/aspirate-output/mathz-databases-forumpostgres/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mathz-databases-forumpostgres | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: mathz-databases-forumpostgres | ||
ports: | ||
- name: tcp | ||
port: 5432 | ||
targetPort: 5432 |
40 changes: 40 additions & 0 deletions
40
src/MathZ.AppHost/aspirate-output/mathz-databases-forumpostgres/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: mathz-databases-forumpostgres | ||
labels: | ||
app: mathz-databases-forumpostgres | ||
spec: | ||
serviceName: "mathz-databases-forumpostgres" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mathz-databases-forumpostgres | ||
template: | ||
metadata: | ||
labels: | ||
app: mathz-databases-forumpostgres | ||
spec: | ||
containers: | ||
- name: mathz-databases-forumpostgres | ||
image: docker.io/library/postgres:16.2 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 5432 | ||
envFrom: | ||
- configMapRef: | ||
name: mathz-databases-forumpostgres-env | ||
- secretRef: | ||
name: mathz-databases-forumpostgres-secrets | ||
volumeMounts: | ||
- name: mathz-databases-forumdatabase | ||
mountPath: /var/lib/postgresql/data | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: mathz-databases-forumdatabase | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi |
20 changes: 20 additions & 0 deletions
20
src/MathZ.AppHost/aspirate-output/mathz-databases-identitypostgres/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
resources: | ||
- statefulset.yaml | ||
- service.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
configMapGenerator: | ||
- name: mathz-databases-identitypostgres-env | ||
literals: | ||
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256 | ||
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 --auth-local=scram-sha-256 | ||
- POSTGRES_USER=postgres | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889 | ||
- OTEL_SERVICE_NAME=mathz-databases-identitypostgres | ||
|
||
secretGenerator: | ||
- name: mathz-databases-identitypostgres-secrets | ||
envs: | ||
- .mathz-databases-identitypostgres.secrets |
13 changes: 13 additions & 0 deletions
13
src/MathZ.AppHost/aspirate-output/mathz-databases-identitypostgres/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mathz-databases-identitypostgres | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: mathz-databases-identitypostgres | ||
ports: | ||
- name: tcp | ||
port: 5432 | ||
targetPort: 5432 |
40 changes: 40 additions & 0 deletions
40
src/MathZ.AppHost/aspirate-output/mathz-databases-identitypostgres/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: mathz-databases-identitypostgres | ||
labels: | ||
app: mathz-databases-identitypostgres | ||
spec: | ||
serviceName: "mathz-databases-identitypostgres" | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mathz-databases-identitypostgres | ||
template: | ||
metadata: | ||
labels: | ||
app: mathz-databases-identitypostgres | ||
spec: | ||
containers: | ||
- name: mathz-databases-identitypostgres | ||
image: docker.io/library/postgres:16.2 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 5432 | ||
envFrom: | ||
- configMapRef: | ||
name: mathz-databases-identitypostgres-env | ||
- secretRef: | ||
name: mathz-databases-identitypostgres-secrets | ||
volumeMounts: | ||
- name: mathz-databases-identitydatabase | ||
mountPath: /var/lib/postgresql/data | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: mathz-databases-identitydatabase | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi |
33 changes: 33 additions & 0 deletions
33
src/MathZ.AppHost/aspirate-output/mathz-messagebus-rabbitmq/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mathz-messagebus-rabbitmq | ||
labels: | ||
app: mathz-messagebus-rabbitmq | ||
spec: | ||
minReadySeconds: 60 | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mathz-messagebus-rabbitmq | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: mathz-messagebus-rabbitmq | ||
spec: | ||
containers: | ||
- name: mathz-messagebus-rabbitmq | ||
image: docker.io/library/rabbitmq:3.13-management | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: tcp | ||
containerPort: 5672 | ||
- name: management | ||
containerPort: 15672 | ||
envFrom: | ||
- configMapRef: | ||
name: mathz-messagebus-rabbitmq-env | ||
terminationGracePeriodSeconds: 180 |
15 changes: 15 additions & 0 deletions
15
src/MathZ.AppHost/aspirate-output/mathz-messagebus-rabbitmq/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resources: | ||
- deployment.yaml | ||
- service.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
configMapGenerator: | ||
- name: mathz-messagebus-rabbitmq-env | ||
literals: | ||
- RABBITMQ_DEFAULT_USER=guest | ||
- RABBITMQ_DEFAULT_PASS=SJL7SUxY4AwVnvLemOO9fH | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire-dashboard:18889 | ||
- OTEL_SERVICE_NAME=mathz-messagebus-rabbitmq | ||
|
16 changes: 16 additions & 0 deletions
16
src/MathZ.AppHost/aspirate-output/mathz-messagebus-rabbitmq/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: mathz-messagebus-rabbitmq | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: mathz-messagebus-rabbitmq | ||
ports: | ||
- name: tcp | ||
port: 5672 | ||
targetPort: 5672 | ||
- name: management | ||
port: 15672 | ||
targetPort: 15672 |
Oops, something went wrong.