Skip to content

Commit f710ac2

Browse files
committed
Add groups in Kubernetes example
1 parent cdaf5f9 commit f710ac2

File tree

10 files changed

+10
-7
lines changed

10 files changed

+10
-7
lines changed

kubernetes/apps/health-simulator/deployment/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ name: health-simulator
33
deployment:
44
image: health-simulator
55
replicas: 1
6+
group: spring-boot-app

kubernetes/apps/hello-world/deployment/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ name: hello-world
33
deployment:
44
image: hello-world
55
replicas: 3
6+
group: spring-boot-app

kubernetes/apps/spring-boot-admin-discoveryclient/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ Therefore, it needs a running spring-cloud-kubernetes-discoveryserver.
55
For this reason, the SBA server does not need kubernetes api permissions on kubernetes itself and uses the
66
spring-boot-app helmchart.
77

8-
9-
TODO does not add new services that are started after this one, seems is no Watch like in the other discovery clients.
10-
This also means that it does not add itself to the list of services.
11-
12-
138
Make sure [discoveryserver](../../helm-charts/spring-cloud-kubernetes-discoveryserver/README.md) is running before deploying this app.
149

1510

kubernetes/apps/spring-boot-admin-discoveryclient/deployment/values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ deployment:
99
management:
1010
port: 8081
1111
image: spring-boot-admin:discocli
12+
group: spring-boot-admin

kubernetes/apps/spring-boot-admin-fabric8/deployment/values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ deployment:
55
env:
66
SPRING_BOOT_ADMIN_UI_TITLE: Spring Boot Admin - Kubernetes Fabric8
77
image: spring-boot-admin:fabric8
8+
group: spring-boot-admin

kubernetes/apps/spring-boot-admin-kubernetes/deployment/values.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ deployment:
99
management:
1010
port: 9091
1111
image: spring-boot-admin:kubernetes
12+
group: spring-boot-admin

kubernetes/helm-charts/spring-boot-admin/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
labels:
77
app: {{ .Values.name }}
88
spring-boot: "true"
9-
# Filter discovery to tagged services
109
annotations:
11-
spring-boot-admin: "true"
10+
spring-boot-admin: "true" # used by SBA server to filter services (e.g. when using fabric8 client)
11+
group: {{ .Values.deployment.group }} # optional: used by SBA frontend to group services
1212
spec:
1313
ports:
1414
- port: {{ .Values.deployment.server.port }}

kubernetes/helm-charts/spring-boot-admin/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ deployment:
2222
port: 8080
2323
management:
2424
port: 8081
25+
group: default

kubernetes/helm-charts/spring-boot-app/templates/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
spring-boot: "true" # used by kubernetes java client to filter directly in discovery client
99
annotations:
1010
spring-boot-admin: "true" # used by SBA server to filter services (e.g. when using fabric8 client)
11+
group: {{ .Values.deployment.group }} # optional: used by SBA frontend to group services
1112
spec:
1213
ports:
1314
- port: 8080

kubernetes/helm-charts/spring-boot-app/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ deployment:
2020
port: 8080
2121
management:
2222
port: 8081
23+
group: default

0 commit comments

Comments
 (0)